summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {