diff options
Diffstat (limited to 'urpm/media.pm')
-rw-r--r-- | urpm/media.pm | 5 |
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'}) { |