summaryrefslogtreecommitdiffstats
path: root/mdkapplet-restricted-helper
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-12-11 14:52:13 +0000
committerThierry Vignaud <tv@mandriva.org>2008-12-11 14:52:13 +0000
commitdd36322228fcd1773b80fd8e7e8172cd0ba85e8b (patch)
treef904182b972247211227b5115e62ac770d00722d /mdkapplet-restricted-helper
parentf6b955dbb9f7552ff6fe19ae5e773d1df0321e57 (diff)
downloadmgaonline-dd36322228fcd1773b80fd8e7e8172cd0ba85e8b.tar
mgaonline-dd36322228fcd1773b80fd8e7e8172cd0ba85e8b.tar.gz
mgaonline-dd36322228fcd1773b80fd8e7e8172cd0ba85e8b.tar.bz2
mgaonline-dd36322228fcd1773b80fd8e7e8172cd0ba85e8b.tar.xz
mgaonline-dd36322228fcd1773b80fd8e7e8172cd0ba85e8b.zip
(actually_add_restricted_medium) use 'always' policy for downloading
XML metadata so that non root users can read them (else, users cannot download them since they do not have enough rights to parse authentication file)
Diffstat (limited to 'mdkapplet-restricted-helper')
-rwxr-xr-xmdkapplet-restricted-helper2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkapplet-restricted-helper b/mdkapplet-restricted-helper
index 889bbe18..c1d8a43d 100755
--- a/mdkapplet-restricted-helper
+++ b/mdkapplet-restricted-helper
@@ -166,7 +166,7 @@ sub adding_media_failed {
sub actually_add_restricted_medium {
my ($ref, $password, $arch) = @_;
- my @options = ({ sensitive_arguments => 1 }, 'urpmi.addmedia');
+ my @options = ({ sensitive_arguments => 1 }, 'urpmi.addmedia', '--xml-info', 'always');
my $uri = "https://" . uri_escape($ref->{data}{email}) . ":$password\@dl.mandriva.com/rpm/comm/2009.0/";
run_program::raw(@options, "Restricted $arch " . int(rand(100000)), "$uri$arch") or return 0;
run_program::raw(@options, '--update', "Restricted Updates $arch " . int(rand(100000)), "${uri}updates/$arch");