summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-06-25 16:41:39 +0000
committerFrancois Pons <fpons@mandriva.com>2001-06-25 16:41:39 +0000
commit7ce6b8500c1e8dbf243c46324e549f278819455d (patch)
tree12677fb71c58e5191bc9a9705124d45d4e7730ab /urpmi.update
parent6209217b87298a88b2d183a8e3c877772f09b99c (diff)
downloadurpmi-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-xurpmi.update5
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, $_;
}