summaryrefslogtreecommitdiffstats
path: root/mdkapplet-enterprise-update-helper
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet-enterprise-update-helper')
-rwxr-xr-xmdkapplet-enterprise-update-helper3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkapplet-enterprise-update-helper b/mdkapplet-enterprise-update-helper
index bddede6d..dddfad29 100755
--- a/mdkapplet-enterprise-update-helper
+++ b/mdkapplet-enterprise-update-helper
@@ -163,6 +163,7 @@ sub actually_add_enterprise_update_medium {
my ($ref, $password, $arch) = @_;
$password = uri_escape($password);
my @options = ({ sensitive_arguments => 1 }, 'urpmi.addmedia', '--xml-info', 'always');
- my $uri = "https://" . uri_escape($ref->{data}{email}) . ":$password\@download.mandriva.com/$version/rpms/$arch/";
+ my $email = uri_escape($ref->{data}{email});
+ my $uri = "https://$email:$password\@download.mandriva.com/$version/rpms/$arch/";
run_program::raw(@options, '--update', '--distrib', $uri);
}