diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-10 13:51:30 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-09-10 13:51:30 +0300 |
commit | 1c4223124d1be094d63cd062b3966fb71b97cfbf (patch) | |
tree | 0e55d65cf57b766035bd2471444920a5329c48e0 /src/package.c | |
parent | 462bb3b8d3e9e88369e385ab770020e3ab20b041 (diff) | |
download | apk-tools-1c4223124d1be094d63cd062b3966fb71b97cfbf.tar.gz apk-tools-1c4223124d1be094d63cd062b3966fb71b97cfbf.tar.bz2 apk-tools-1c4223124d1be094d63cd062b3966fb71b97cfbf.tar.xz apk-tools-1c4223124d1be094d63cd062b3966fb71b97cfbf.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/package.c b/src/package.c index e211b63..ca172e9 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); |