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/apk.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/apk.c')
-rw-r--r-- | src/apk.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -66,6 +66,7 @@ static struct apk_option generic_options[] = { { 0x108, "repositories-file", "Override repositories file", required_argument, "REPOFILE" }, { 0x109, "no-network", "Do not use network (cache is still used)" }, + { 0x113, "no-scripts", "Do not execute any scripts" }, { 0x111, "overlay-from-stdin", "Read list of overlay files from stdin" }, { 0x112, "arch", "Use architecture with --root", required_argument, "ARCH" }, @@ -409,6 +410,9 @@ int main(int argc, char **argv) case 0x109: apk_flags |= APK_NO_NETWORK; break; + case 0x113: + apk_flags |= APK_NO_SCRIPTS; + break; case 0x111: apk_flags |= APK_OVERLAY_FROM_STDIN; break; |