summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-12-05 20:28:42 +0000
committerFrancois Pons <fpons@mandriva.com>2003-12-05 20:28:42 +0000
commit610cdafe75afb6a9d4a62e4570fa185e4734d377 (patch)
tree52e3db7f8972d995a0ad8d51d292297c0670b54f /urpmi.addmedia
parentff5de4e539ee979095de9f48d335a6ede0ae4584 (diff)
downloadurpmi-610cdafe75afb6a9d4a62e4570fa185e4734d377.tar
urpmi-610cdafe75afb6a9d4a62e4570fa185e4734d377.tar.gz
urpmi-610cdafe75afb6a9d4a62e4570fa185e4734d377.tar.bz2
urpmi-610cdafe75afb6a9d4a62e4570fa185e4734d377.tar.xz
urpmi-610cdafe75afb6a9d4a62e4570fa185e4734d377.zip
fixed small options being blocking long options. (again)
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia18
1 files changed, 9 insertions, 9 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 09e02504..54329bc1 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -87,11 +87,11 @@ and [options] are from
/^--?h$/ and next;
/^--?f$/ and ++$options{force}, next;
/^--?z$/ and ++$options{compress}, next;
- /^--wget/ and $urpm->{sync} = sub { my $options = shift @_;
- if (ref $options) { $options->{prefer} = 'wget' }
- else { $options = { dir => $options, prefer => 'wget' } }
- urpm::sync_webfetch($options, @_) }, next;
- /^--curl/ and $urpm->{sync} = \&urpm::sync_webfetch, next;
+ /^--wget$/ and $urpm->{sync} = sub { my $options = shift @_;
+ if (ref $options) { $options->{prefer} = 'wget' }
+ else { $options = { dir => $options, prefer => 'wget' } }
+ urpm::sync_webfetch($options, @_) }, next;
+ /^--curl$/ and $urpm->{sync} = \&urpm::sync_webfetch, next;
/^--limit-rate$/ and do { $options{limit_rate} = shift @_; next };
/^--proxy$/ and do {
my ($proxy, $port) = ($_ = shift @_) =~ m,^(?:http://)?([^:]+(:\d+)?)/*$, or
@@ -107,10 +107,10 @@ and [options] are from
$urpm->{proxy}{pwd} = $2;
next;
};
- /^--probe-synthesis/ and $options{probe_with} = 'synthesis', next;
- /^--probe-hdlist/ and $options{probe_with} = 'hdlist', next;
- /^--no-probe/ and $options{probe_with} = undef, next;
- /^--no-md5sum/ and $options{nomd5sum} = 1, next;
+ /^--probe-synthesis$/ and $options{probe_with} = 'synthesis', next;
+ /^--probe-hdlist$/ and $options{probe_with} = 'hdlist', next;
+ /^--no-probe$/ and $options{probe_with} = undef, next;
+ /^--no-md5sum$/ and $options{nomd5sum} = 1, next;
/^--distrib$/ and $options{distrib} = undef, next;
/^--distrib-(.*)$/ and $options{distrib} = $1, next;
/^--from$/ and $options{mirrors_url} = shift @_, next;