diff options
-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, ''); |