diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-12-11 14:52:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-12-11 14:52:13 +0000 |
commit | dd36322228fcd1773b80fd8e7e8172cd0ba85e8b (patch) | |
tree | f904182b972247211227b5115e62ac770d00722d /mdkapplet-restricted-helper | |
parent | f6b955dbb9f7552ff6fe19ae5e773d1df0321e57 (diff) | |
download | mgaonline-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-x | mdkapplet-restricted-helper | 2 |
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"); |