diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-01-28 17:51:48 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-01-28 17:51:48 +0000 |
commit | cfa54d9aa00950a36a3d9c5a3bc90b8e6ef48681 (patch) | |
tree | 533c2d32bbba5f252718915f5ecc5c955013a087 /Rpmdrake | |
parent | 49c9295d2e7e2035399c235f8e6aaa7471e99186 (diff) | |
download | rpmdrake-cfa54d9aa00950a36a3d9c5a3bc90b8e6ef48681.tar rpmdrake-cfa54d9aa00950a36a3d9c5a3bc90b8e6ef48681.tar.gz rpmdrake-cfa54d9aa00950a36a3d9c5a3bc90b8e6ef48681.tar.bz2 rpmdrake-cfa54d9aa00950a36a3d9c5a3bc90b8e6ef48681.tar.xz rpmdrake-cfa54d9aa00950a36a3d9c5a3bc90b8e6ef48681.zip |
(get_pkgs) fix crash on empty backport media (#36720) [BACKPORT]
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/pkg.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 136f2bd9..97333113 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -376,6 +376,7 @@ sub get_pkgs { foreach my $medium (@search_medias) { $update->(); foreach my $pkg_id ($medium->{start} .. $medium->{end}) { + next if !$pkg_id; my $pkg = $urpm->{depslist}[$pkg_id]; $pkg->flag_upgrade or next; my $name = urpm_name($pkg); |