summaryrefslogtreecommitdiffstats
path: root/mdkapplet-restricted-helper
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-12-01 14:20:11 +0000
committerThierry Vignaud <tv@mandriva.org>2008-12-01 14:20:11 +0000
commitb5d9b3a8ebfe20c78a427ba647bd84d5d18ce821 (patch)
tree60fed264e50394ade76ee945862020ce5eb54c4d /mdkapplet-restricted-helper
parent0d5e2b8d51b33cc04e4004f5c29045d28d33ac94 (diff)
downloadmgaonline-b5d9b3a8ebfe20c78a427ba647bd84d5d18ce821.tar
mgaonline-b5d9b3a8ebfe20c78a427ba647bd84d5d18ce821.tar.gz
mgaonline-b5d9b3a8ebfe20c78a427ba647bd84d5d18ce821.tar.bz2
mgaonline-b5d9b3a8ebfe20c78a427ba647bd84d5d18ce821.tar.xz
mgaonline-b5d9b3a8ebfe20c78a427ba647bd84d5d18ce821.zip
(add_restricted_medium) extracts items in variables (needed for next commit)
Diffstat (limited to 'mdkapplet-restricted-helper')
-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");
}
}