diff options
author | Francois Pons <fpons@mandriva.com> | 2001-05-22 13:51:01 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-05-22 13:51:01 +0000 |
commit | 1f18977c3d9a115bee17684340b35de405b38977 (patch) | |
tree | f5d32c2f94e77dc79a2c7f079acb9c72c1e149d5 /urpm.pm | |
parent | a7f6c001df90ecebb288ae6cebf8e968db0aac2b (diff) | |
download | urpmi-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.pm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |