From 7ce6b8500c1e8dbf243c46324e549f278819455d Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 25 Jun 2001 16:41:39 +0000 Subject: new algorithm for searching packages. --- urpmi.update | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'urpmi.update') 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] ... where 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, $_; } -- cgit v1.2.1