summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmdkapplet-restricted-helper7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdkapplet-restricted-helper b/mdkapplet-restricted-helper
index 1c8c2ce5..69f9bace 100755
--- a/mdkapplet-restricted-helper
+++ b/mdkapplet-restricted-helper
@@ -127,7 +127,10 @@ sub add_restricted_medium {
$in->ask_warn(N("Error"), N("An error occurred") . "\n" . $ref->{message});
goto &get_restricted_authentication;
} else {
- run_program::raw({ sensitive_arguments => 1 }, 'urpmi.addmedia', '--update', 'Restricted ' . int(rand(100000)),
- "https://" . uri_escape($ref->{data}{email}) . ":$password\@dl.mandriva.com/rpm/comm/2009.0/" . urpm::cfg::get_arch());
+ my @options = ({ sensitive_arguments => 1 }, 'urpmi.addmedia', '--update');
+ my $uri = "https://" . uri_escape($ref->{data}{email}) . ":$password\@dl.mandriva.com/rpm/comm/2009.0/";
+ my $arch = urpm::cfg::get_arch();
+ run_program::raw(@options, 'Restricted ' . int(rand(100000)),
+ "$uri$arch");
}
}