From df23d1acfe8752f339f9f69d212cfa240f578796 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 12 Dec 2007 11:17:16 +0000 Subject: create urpm->new_parse_cmdline and use it (it may be a little stricter for urpmi since we exit(1) on parse_cmdline error) --- urpmi.removemedia | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'urpmi.removemedia') diff --git a/urpmi.removemedia b/urpmi.removemedia index 88e9a823..35f98081 100755 --- a/urpmi.removemedia +++ b/urpmi.removemedia @@ -53,11 +53,9 @@ where 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")); -- cgit v1.2.1