summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-16 08:52:22 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-16 08:52:22 +0300
commit6715a0ba12af54767ba889de07afe3543b7c1543 (patch)
tree40374647df20dc2ca7a4721391598997b644767e /src/database.c
parent623bc9c5a820906e26c0cc52d0ab230c3c0bc1ab (diff)
downloadapk-tools-6715a0ba12af54767ba889de07afe3543b7c1543.tar.gz
apk-tools-6715a0ba12af54767ba889de07afe3543b7c1543.tar.bz2
apk-tools-6715a0ba12af54767ba889de07afe3543b7c1543.tar.xz
apk-tools-6715a0ba12af54767ba889de07afe3543b7c1543.zip
pkg: remove support for the deprecated .INSTALL script
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/database.c b/src/database.c
index 80b6fc3..4daa66a 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1179,11 +1179,7 @@ static int apk_db_install_archive_entry(void *_ctx,
/* Package metainfo and script processing */
if (ae->name[0] == '.') {
/* APK 2.0 format */
- if (strcmp(ae->name, ".INSTALL") == 0)
- type = APK_SCRIPT_GENERIC;
- else
- type = apk_script_type(&ae->name[1]);
-
+ type = apk_script_type(&ae->name[1]);
if (type == APK_SCRIPT_INVALID)
return 0;
} else if (strncmp(ae->name, "var/db/apk/", 11) == 0) {
@@ -1205,8 +1201,7 @@ static int apk_db_install_archive_entry(void *_ctx,
if (type != APK_SCRIPT_INVALID) {
apk_pkg_add_script(pkg, is, type, ae->size);
- if (type == APK_SCRIPT_GENERIC ||
- type == ctx->script) {
+ if (type == ctx->script) {
r = apk_pkg_run_script(pkg, db->root_fd, ctx->script);
if (r != 0)
apk_error("%s-%s: Failed to execute pre-install/upgrade script",