summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-23 15:56:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-23 15:56:33 +0000
commitf73da7283d95a9ffa0710006aa43c1d5bbc1a826 (patch)
tree93bc888687a9912c5caf769c1a896cd6df75537e /urpm
parent787a9bd8b3183fb7469a4280555767d2cf646162 (diff)
downloadurpmi-f73da7283d95a9ffa0710006aa43c1d5bbc1a826.tar
urpmi-f73da7283d95a9ffa0710006aa43c1d5bbc1a826.tar.gz
urpmi-f73da7283d95a9ffa0710006aa43c1d5bbc1a826.tar.bz2
urpmi-f73da7283d95a9ffa0710006aa43c1d5bbc1a826.tar.xz
urpmi-f73da7283d95a9ffa0710006aa43c1d5bbc1a826.zip
- urpmi.addmedia, urpmi.update:
o do not get "descriptions" on non "update" media since it's useless and potentially slow
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index bb2a0682..9619717b 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1496,7 +1496,10 @@ sub _get_pubkey_and_descriptions {
my $local = file_from_local_medium($medium);
- ($local ? \&get_descriptions_local : \&get_descriptions_remote)->($urpm, $medium);
+ # do not get "descriptions" on non "update" media since it's useless and potentially slow
+ if ($medium->{update}) {
+ ($local ? \&get_descriptions_local : \&get_descriptions_remote)->($urpm, $medium);
+ }
#- examine if a pubkey file is available.
if (!$nopubkey && !$medium->{'key-ids'}) {