From 08ed9f3d96e464f01f63644f16f900e20604d2ae Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 27 May 2008 13:36:42 +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 2946dffd..00f4b9a2 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 06c88e55..917b6f6f 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -320,6 +320,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