diff options
author | Francois Pons <fpons@mandriva.com> | 2002-03-11 14:11:05 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-03-11 14:11:05 +0000 |
commit | f19aca94051e57f271fafe712514e5af119e7254 (patch) | |
tree | bcc3c0b33c0cdeb229d9d7e7f01fc3629fd69207 /urpmq | |
parent | b5756f7d0b4c11db3cfec8809806874ffac91933 (diff) | |
download | urpmi-f19aca94051e57f271fafe712514e5af119e7254.tar urpmi-f19aca94051e57f271fafe712514e5af119e7254.tar.gz urpmi-f19aca94051e57f271fafe712514e5af119e7254.tar.bz2 urpmi-f19aca94051e57f271fafe712514e5af119e7254.tar.xz urpmi-f19aca94051e57f271fafe712514e5af119e7254.zip |
3.3-22mdk (added missing support for --wget/--curl to urpmq)
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -63,6 +63,9 @@ usage: exit(0); } +#- params contains informations to parse installed system. +my $urpm = new urpm; + #- parse arguments list. my @nextargv; for (@ARGV) { @@ -77,6 +80,8 @@ for (@ARGV) { /^--sources$/ and do { $query->{sources} = 1; next }; /^--force$/ and do { $query->{force} = 1; next }; /^--root$/ and do { push @nextargv, \$query->{root}; next }; + /^--wget$/ and do { $urpm->{sync} = \&urpm::sync_wget; next }; + /^--curl$/ and do { $urpm->{sync} = \&urpm::sync_curl; next }; /^-(.*)$/ and do { foreach (split //, $1) { /[\?h]/ and do { usage; next }; /d/ and do { $query->{deps} = 1; next }; @@ -105,9 +110,6 @@ for (@ARGV) { $query->{src} = 0; #- reset switch for next package. } -#- params contains informations to parse installed system. -my $urpm = new urpm; - #- remove verbose if not asked. $query->{verbose} or $urpm->{log} = sub {}; |