aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-05-27 13:36:42 +0000
committerThierry Vignaud <tv@mandriva.org>2008-05-27 13:36:42 +0000
commit08ed9f3d96e464f01f63644f16f900e20604d2ae (patch)
tree3891b92b9abb240cc34961e2db6955144ea9e389
parentcd9adda94c6ce6bae930a0635bfa12e6ba998c1d (diff)
downloadrpmdrake-08ed9f3d96e464f01f63644f16f900e20604d2ae.tar
rpmdrake-08ed9f3d96e464f01f63644f16f900e20604d2ae.tar.gz
rpmdrake-08ed9f3d96e464f01f63644f16f900e20604d2ae.tar.bz2
rpmdrake-08ed9f3d96e464f01f63644f16f900e20604d2ae.tar.xz
rpmdrake-08ed9f3d96e464f01f63644f16f900e20604d2ae.zip
(get_installed_packages) fix crash in URPM with non standard package
names (#41002)
-rw-r--r--NEWS2
-rw-r--r--Rpmdrake/pkg.pm1
2 files changed, 3 insertions, 0 deletions
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),