summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-12-21 14:14:02 +0200
committerTimo Teras <timo.teras@iki.fi>2009-12-21 14:14:02 +0200
commitd0909569c639a033a6f1c47a95745886ebe3e093 (patch)
tree50443055a3c56324d7c43098d19a4a960cad6c30 /src/apk.c
parent366e7d07ae20d18cfc5f9f12588a0371654f956a (diff)
downloadapk-tools-d0909569c639a033a6f1c47a95745886ebe3e093.tar.gz
apk-tools-d0909569c639a033a6f1c47a95745886ebe3e093.tar.bz2
apk-tools-d0909569c639a033a6f1c47a95745886ebe3e093.tar.xz
apk-tools-d0909569c639a033a6f1c47a95745886ebe3e093.zip
apk: --overlay-from-stdin
get list of overlay files from stdin, so those do not get overwritten.
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index eff31ac..ee6690f 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -58,6 +58,7 @@ static struct apk_option generic_options[] = {
required_argument, "REPOFILE" },
{ 0x109, "no-network", "Do not use network (cache is still used)" },
{ 0x110, "never-overwrite", "Never overwrite existing files" },
+ { 0x111, "overlay-from-stdin", "Read list of overlay files from stdin" },
};
const char *apk_error_str(int error)
@@ -388,6 +389,9 @@ int main(int argc, char **argv)
case 0x110:
apk_flags |= APK_NEVER_OVERWRITE;
break;
+ case 0x111:
+ apk_flags |= APK_OVERLAY_FROM_STDIN;
+ break;
default:
if (applet == NULL || applet->parse == NULL ||
applet->parse(ctx, &dbopts, r,