diff options
author | Francois Pons <fpons@mandriva.com> | 2001-06-25 16:41:39 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-06-25 16:41:39 +0000 |
commit | 7ce6b8500c1e8dbf243c46324e549f278819455d (patch) | |
tree | 12677fb71c58e5191bc9a9705124d45d4e7730ab /urpmi.update | |
parent | 6209217b87298a88b2d183a8e3c877772f09b99c (diff) | |
download | urpmi-7ce6b8500c1e8dbf243c46324e549f278819455d.tar urpmi-7ce6b8500c1e8dbf243c46324e549f278819455d.tar.gz urpmi-7ce6b8500c1e8dbf243c46324e549f278819455d.tar.bz2 urpmi-7ce6b8500c1e8dbf243c46324e549f278819455d.tar.xz urpmi-7ce6b8500c1e8dbf243c46324e549f278819455d.zip |
new algorithm for searching packages.
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, $_; } |