summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-05-22 13:51:01 +0000
committerFrancois Pons <fpons@mandriva.com>2001-05-22 13:51:01 +0000
commit1f18977c3d9a115bee17684340b35de405b38977 (patch)
treef5d32c2f94e77dc79a2c7f079acb9c72c1e149d5 /urpm.pm
parenta7f6c001df90ecebb288ae6cebf8e968db0aac2b (diff)
downloadurpmi-1f18977c3d9a115bee17684340b35de405b38977.tar
urpmi-1f18977c3d9a115bee17684340b35de405b38977.tar.gz
urpmi-1f18977c3d9a115bee17684340b35de405b38977.tar.bz2
urpmi-1f18977c3d9a115bee17684340b35de405b38977.tar.xz
urpmi-1f18977c3d9a115bee17684340b35de405b38977.zip
fixed warning if src rpm are inserted in medium.
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 384bbf2c..6a31bc20 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1046,8 +1046,9 @@ sub filter_minimal_packages_to_upgrade {
my $update_info = sub {
my $found;
#- check with provides that version and release are matching else ignore safely.
- $info{name} or return;
- foreach (@{$info{provides} || []}) {
+ #- simply ignore src rpm, which does not have any provides.
+ $info{name} && $info{provides} or return;
+ foreach (@{$info{provides}}) {
if (/(\S*)\s*==\s*\d*:?([^-]*)-([^-]*)/ && $info{name} eq $1) {
$found = $urpm->{params}{info}{$info{name}};
if ($found->{version} eq $2 && $found->{release} eq $3) {