summaryrefslogtreecommitdiff
path: root/src/apk_defines.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-11-06 11:31:03 +0200
committerTimo Teras <timo.teras@iki.fi>2009-11-06 11:31:03 +0200
commita93a35eecaf580d97f6a451d7e951be0ff18372c (patch)
treecec5984f85821ad8aff5cfe317e98c0e5f4ab36e /src/apk_defines.h
parent44ac0b06af20bd32010502a10d8bb7752215c627 (diff)
downloadapk-tools-a93a35eecaf580d97f6a451d7e951be0ff18372c.tar.gz
apk-tools-a93a35eecaf580d97f6a451d7e951be0ff18372c.tar.bz2
apk-tools-a93a35eecaf580d97f6a451d7e951be0ff18372c.tar.xz
apk-tools-a93a35eecaf580d97f6a451d7e951be0ff18372c.zip
apk: add --never-overwrite flag (ref #197)
to never ever overwrite a while in the filesystem the user knows about. it gives the impression of extraction succeeding even though nothing was done. this is inteded to be used only for bootstrapping with overlay.
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r--src/apk_defines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h
index a0b297a..c0f4b0f 100644
--- a/src/apk_defines.h
+++ b/src/apk_defines.h
@@ -64,6 +64,7 @@ extern unsigned int apk_flags;
#define APK_INTERACTIVE 0x0400
#define APK_RECURSIVE_DELETE 0x0800
#define APK_NO_NETWORK 0x1000
+#define APK_NEVER_OVERWRITE 0x2000
#define apk_error(args...) do { apk_log("ERROR: ", args); } while (0)
#define apk_warning(args...) do { if (apk_verbosity > 0) { apk_log("WARNING: ", args); } } while (0)