From adec2f9a3c6f5956c98795379caf1a4d49013ef9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 27 May 2008 13:36:04 +0000 Subject: (get_installed_packages) fix crash in URPM with non standard package names (#41002) --- NEWS | 2 ++ Rpmdrake/pkg.pm | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 4608befa..a3ea0e96 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- rpmdrake: + o fix crash in URPM with non standard package names (#41002) - MandrivaUpdate (#40235): o laptop mode (height not bigger than 480): fix test diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 89f1d827..bd25caf9 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -327,6 +327,7 @@ sub get_installed_packages { my ($pkg) = @_; update_pbar($gurpm); my $fullname = urpm_name($pkg); + return if $fullname =~ /@/; #- Extract summary and description since they'll be lost when the header is packed $all_pkgs->{$fullname} = { selected => 0, pkg => $pkg, urpm_name => urpm_name($pkg), -- cgit v1.2.1