diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-07-04 12:35:01 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-07-04 12:35:01 +0000 |
commit | cf7cbd5edc634fe5aed9070ca2564d5a605b78f5 (patch) | |
tree | f3fe88d387fe6e5772e275e61cb2c301e69d2a7e /URPM | |
parent | 18803273406f44b561861a44ba81bca762b31335 (diff) | |
download | perl-URPM-cf7cbd5edc634fe5aed9070ca2564d5a605b78f5.tar perl-URPM-cf7cbd5edc634fe5aed9070ca2564d5a605b78f5.tar.gz perl-URPM-cf7cbd5edc634fe5aed9070ca2564d5a605b78f5.tar.bz2 perl-URPM-cf7cbd5edc634fe5aed9070ca2564d5a605b78f5.tar.xz perl-URPM-cf7cbd5edc634fe5aed9070ca2564d5a605b78f5.zip |
One might have an undefined package in the depslist (not sure why)
Diffstat (limited to 'URPM')
-rw-r--r-- | URPM/Resolve.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index b5ce035..1bb8435 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -931,6 +931,7 @@ sub compute_installed_flags { #- compute flags. foreach (keys %{$urpm->{provides}{$p->name} || {}}) { my $pkg = $urpm->{depslist}[$_]; + next if !defined $pkg; $pkg->is_arch_compat && $pkg->name eq $p->name or next; #- compute only installed and upgrade flags. $pkg->set_flag_installed; #- there is at least one package installed (whatever its version). |