summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 988c39a8..6b057e2d 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -87,8 +87,7 @@ if ($options{mirrors_url}) {
}
$options{force} = 0;
$options{noclean} = 1;
-my $urpm = new urpm;
-urpm::args::parse_cmdline(urpm => $urpm) or usage();
+my $urpm = urpm->new_parse_cmdline or usage();
our ($name, $url, $with, $relative_hdlist) = our @cmdline;
$options{quiet} = 1 if $options{verbose} < 0;