aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-01-23 15:38:46 +0000
committerThierry Vignaud <tv@mandriva.org>2008-01-23 15:38:46 +0000
commite277fc50cdc25b793bb6bf20456d1284be665db8 (patch)
tree0a7917d59b0f844ef7cda25f49e7b2ffb2f64bcc
parent282d77e497fa21cc6a05e43a1fd45f9ad5053488 (diff)
downloadrpmdrake-e277fc50cdc25b793bb6bf20456d1284be665db8.tar
rpmdrake-e277fc50cdc25b793bb6bf20456d1284be665db8.tar.gz
rpmdrake-e277fc50cdc25b793bb6bf20456d1284be665db8.tar.bz2
rpmdrake-e277fc50cdc25b793bb6bf20456d1284be665db8.tar.xz
rpmdrake-e277fc50cdc25b793bb6bf20456d1284be665db8.zip
(get_pkgs) fix crash (#36720)
-rw-r--r--Rpmdrake/pkg.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 5c533b24..bf3269c4 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -390,6 +390,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);