diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-22 21:34:25 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-22 21:34:25 +0300 |
commit | 90aaa28a95f28206e6bf4ed0d5a798595165cb8c (patch) | |
tree | 67071fbc48be4d3748faf55b5570d197003c4652 /src/apk.c | |
parent | 83ae16feb8bb6063ac26eb4cbbc6142bfb4057a4 (diff) | |
download | apk-tools-90aaa28a95f28206e6bf4ed0d5a798595165cb8c.tar.gz apk-tools-90aaa28a95f28206e6bf4ed0d5a798595165cb8c.tar.bz2 apk-tools-90aaa28a95f28206e6bf4ed0d5a798595165cb8c.tar.xz apk-tools-90aaa28a95f28206e6bf4ed0d5a798595165cb8c.zip |
apk: add --purge option (fixes #61)
and do not remove modified configuration files unless --purge is
specified.
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -43,6 +43,8 @@ static struct apk_option generic_options[] = { { 0x101, "progress", "Show a progress bar" }, { 0x102, "clean-protected", "Do not create .apk-new files to " "configuration dirs" }, + { 0x106, "purge", "Delete also modified configuration files on " + "package removal" }, { 0x103, "allow-untrusted", "Blindly install packages with untrusted " "signatures or no signature at all" }, { 0x104, "simulate", "Show what would be done without actually " @@ -359,6 +361,9 @@ int main(int argc, char **argv) case 0x104: apk_flags |= APK_SIMULATE; break; + case 0x106: + apk_flags |= APK_PURGE; + break; case 0x105: apk_wait = atoi(optarg); break; |