summaryrefslogtreecommitdiffstats
path: root/urpmi.removemedia
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.removemedia')
-rwxr-xr-xurpmi.removemedia4
1 files changed, 1 insertions, 3 deletions
diff --git a/urpmi.removemedia b/urpmi.removemedia
index 88e9a823..35f98081 100755
--- a/urpmi.removemedia
+++ b/urpmi.removemedia
@@ -53,11 +53,9 @@ where <name> is a medium name to remove.
$options{noclean} = 1;
$options{strict_match} = 1;
-my $urpm = new urpm;
-
our @cmdline; #- set by urpm::args
-urpm::args::parse_cmdline(urpm => $urpm) or exit(1);
+my $urpm = urpm->new_parse_cmdline or exit(1);
if ($< != 0) {
$urpm->{fatal}(1, N("Only superuser is allowed to remove media"));