From dd36322228fcd1773b80fd8e7e8172cd0ba85e8b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 11 Dec 2008 14:52:13 +0000 Subject: (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) --- NEWS | 4 ++++ mdkapplet-restricted-helper | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index f55265e1..b5845009 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +- mdkapplet-restricted-helper + o use 'always' policy for downloading XML metadata so that non root + users can read themx + Version 2.71.3 - 9 December 2008 - mdkapplet-restricted-helper 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"); -- cgit v1.2.1