diff options
Diffstat (limited to 'urpmi.update')
-rwxr-xr-x | urpmi.update | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/urpmi.update b/urpmi.update index 0342d96f..34151028 100755 --- a/urpmi.update +++ b/urpmi.update @@ -27,17 +27,18 @@ import urpm _; sub main { my (@toupdates, %options); + $options{force} = 0; $options{noclean} = 1; foreach (@_) { /^--?a/ and $options{all} = 1, next; /^--?c/ and $options{noclean} = 0, next; - /^--?f/ and $options{force} = 1, next; + /^--?f/ and ++$options{force}, next; /^--?noa/ and next; #- default, keeped for compability. /^-/ and die _("usage: urpmi.update [-a] <name> ... where <name> is a medium name to update. -a select all non-removable media. -c clean headers cache directory. - -f force generation of hdlist or base files. + -f force generation of base files, use another -f for hdlist files. \nunknown options '%s'\n", $_); push @toupdates, $_; } |