diff options
author | Francois Pons <fpons@mandriva.com> | 2002-01-28 12:07:56 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-01-28 12:07:56 +0000 |
commit | c452cd5c4f51f18762eb56eaf994261380a832f1 (patch) | |
tree | d22c7888d31d975ca212e99a25dc999ea5240887 /urpmi.addmedia | |
parent | 26535f788123c69486484a8ba118ede1178f0394 (diff) | |
download | urpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.tar urpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.tar.gz urpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.tar.bz2 urpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.tar.xz urpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.zip |
3.2-4mdk
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-x | urpmi.addmedia | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia index be398787..ead4b13a 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -46,13 +46,12 @@ and [options] are from $options{force} = 0; $options{noclean} = 1; - $options{sync} = undef; while ($_ = shift @_) { /^--?c/ and $options{noclean} = 0, next; /^--?h/ and $options{probe_with_hdlist} = 1, next; /^--?f/ and ++$options{force}, next; - /^--wget/ and $options{sync} = \&urpm::sync_wget, next; - /^--curl/ and $options{sync} = \&urpm::sync_curl, next; + /^--wget/ and $urpm->{sync} = \&urpm::sync_wget, next; + /^--curl/ and $urpm->{sync} = \&urpm::sync_curl, next; /^--distrib$/ and $options{distrib} = 1, next; /^--update$/ and $options{update} = 1, next; /^-/ and die $usage . _("\nunknown options '%s'\n", $_); @@ -64,7 +63,6 @@ and [options] are from my ($type) = $url =~ m,^([^:]*)://, or die $usage; my $urpm = new urpm; - $options{sync} and $urpm->{sync} = $options{sync}; $urpm->read_config; |