diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-14 08:33:44 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-14 08:33:44 +0000 |
commit | fadf35a458884372e139c97282a333f4a0d84f25 (patch) | |
tree | 83972b954e1c00e35e2329078590bf5bd76c086c | |
parent | 8c6c3610ab5d9fa60c2e38cbcba71d9517cfd6f6 (diff) | |
download | urpmi-fadf35a458884372e139c97282a333f4a0d84f25.tar urpmi-fadf35a458884372e139c97282a333f4a0d84f25.tar.gz urpmi-fadf35a458884372e139c97282a333f4a0d84f25.tar.bz2 urpmi-fadf35a458884372e139c97282a333f4a0d84f25.tar.xz urpmi-fadf35a458884372e139c97282a333f4a0d84f25.zip |
urpmi.addmedia was forgetting command-line arguments.
-rw-r--r-- | urpm/args.pm | 3 | ||||
-rwxr-xr-x | urpmi.addmedia | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index 5b4c9764..15d246fb 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -229,6 +229,9 @@ my %options_spec = ( if ($_[0] =~ /^--distrib-(.*)$/) { $::options{distrib} = $1; } + else { + push @::cmdline, $_[0]; + } }, }, diff --git a/urpmi.addmedia b/urpmi.addmedia index 6efb7941..793316b0 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -89,13 +89,12 @@ sub main { } close F; } - #--- $options{force} = 0; $options{noclean} = 1; $options{probe_with} = 'synthesis'; #- no the default is to probe synthesis file. my $urpm = new urpm; urpm::args::parse_cmdline(urpm => $urpm); - our ($name, $url, $with, $relative_hdlist) = @ARGV; + our ($name, $url, $with, $relative_hdlist) = our @cmdline; #- allow not to give name immediately. $options{distrib} or $url or ($url, $name) = ($name, ''); |