summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-14 08:33:44 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-14 08:33:44 +0000
commitfadf35a458884372e139c97282a333f4a0d84f25 (patch)
tree83972b954e1c00e35e2329078590bf5bd76c086c
parent8c6c3610ab5d9fa60c2e38cbcba71d9517cfd6f6 (diff)
downloadurpmi-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.pm3
-rwxr-xr-xurpmi.addmedia3
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, '');