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 ead4b13a..74c0019e 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -46,6 +46,7 @@ and [options] are from
$options{force} = 0;
$options{noclean} = 1;
+ my $urpm = new urpm;
while ($_ = shift @_) {
/^--?c/ and $options{noclean} = 0, next;
/^--?h/ and $options{probe_with_hdlist} = 1, next;
@@ -62,8 +63,6 @@ and [options] are from
$url or ($url, $name) = ($name, '');
my ($type) = $url =~ m,^([^:]*)://, or die $usage;
- my $urpm = new urpm;
-
$urpm->read_config;
if ($options{distrib}) {