aboutsummaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-10 13:51:30 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-09-10 13:51:30 +0300
commit1c4223124d1be094d63cd062b3966fb71b97cfbf (patch)
tree0e55d65cf57b766035bd2471444920a5329c48e0 /src/package.c
parent462bb3b8d3e9e88369e385ab770020e3ab20b041 (diff)
downloadaports-1c4223124d1be094d63cd062b3966fb71b97cfbf.tar.bz2
aports-1c4223124d1be094d63cd062b3966fb71b97cfbf.tar.xz
apk: new option --no-scripts
to not run any per-package scripts. useful for managing buildroot when cross-compiling.
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/package.c b/src/package.c
index e211b6317d..ca172e90d3 100644
--- a/src/package.c
+++ b/src/package.c
@@ -995,10 +995,10 @@ void apk_ipkg_run_script(struct apk_installed_package *ipkg,
PKG_VER_PRINTF(pkg),
apk_script_types[type]);
- apk_message("Executing %s", &fn[15]);
- if (apk_flags & APK_SIMULATE)
+ if ((apk_flags & (APK_NO_SCRIPTS | APK_SIMULATE)) != 0)
return;
+ apk_message("Executing %s", &fn[15]);
fd = openat(root_fd, fn, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, 0755);
if (fd < 0) {
mkdirat(root_fd, "var/cache/misc", 0755);