summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-01-23 19:16:01 +0000
committerFrancois Pons <fpons@mandriva.com>2001-01-23 19:16:01 +0000
commitc8864d25ab528d9de911e7f6c151879accfad5f6 (patch)
treefd617d385745b1836fc6b35fc583a2a0b2bac771
parent013c07669186768aa2cc0b974c8c49543613642b (diff)
downloadurpmi-c8864d25ab528d9de911e7f6c151879accfad5f6.tar
urpmi-c8864d25ab528d9de911e7f6c151879accfad5f6.tar.gz
urpmi-c8864d25ab528d9de911e7f6c151879accfad5f6.tar.bz2
urpmi-c8864d25ab528d9de911e7f6c151879accfad5f6.tar.xz
urpmi-c8864d25ab528d9de911e7f6c151879accfad5f6.zip
added -c flag for cleaning, default is noclean.
-rwxr-xr-xurpmi.update2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmi.update b/urpmi.update
index b1a77ae6..7346de86 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -24,8 +24,10 @@ use urpm;
sub main {
my (@toupdates, %options);
+ $options{noclean} = 1;
foreach (@_) {
/^--?a/ and $options{all} = 1, next;
+ /^--?c/ and $options{noclean} = 0, next;
/^--?f/ and $options{force} = 1, next;
/^--?noa/ and next; #- default, keeped for compability.
/^-/ and die "unknown options \"$_\"\n";