aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Victor Duarte Martins <jvdm@mandriva.com.br>2011-08-10 18:49:25 +0000
committerJoão Victor Duarte Martins <jvdm@mandriva.com.br>2011-08-10 18:49:25 +0000
commit6646ccbdd19419aa3b8aebdb27778ea100332ba9 (patch)
treef446ae952eacae63abb227082647070a4e7636bd
parent1ad31a3454366e2343c518b9c30671156b92f63c (diff)
downloadrpmdrake-6646ccbdd19419aa3b8aebdb27778ea100332ba9.tar
rpmdrake-6646ccbdd19419aa3b8aebdb27778ea100332ba9.tar.gz
rpmdrake-6646ccbdd19419aa3b8aebdb27778ea100332ba9.tar.bz2
rpmdrake-6646ccbdd19419aa3b8aebdb27778ea100332ba9.tar.xz
rpmdrake-6646ccbdd19419aa3b8aebdb27778ea100332ba9.zip
Add parsing of fullnames to NVRA after urpm::select::find_packages_to_remove
(fix #63222).
-rw-r--r--NEWS3
-rw-r--r--Rpmdrake/gui.pm5
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e4f35ad4..52a03e6d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- Add parsing of removed fullnames to NVRA after
+ urpm::select::find_packages_to_remove (fix #63222)
+
Version 5.26.10
- update translations
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 2ab9c032..6d4398e9 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -679,6 +679,11 @@ sub pkgs_provider {
sub closure_removal {
local $urpm->{state} = {};
urpm::select::find_packages_to_remove($urpm, $urpm->{state}, \@_);
+ my $rejected = $urpm->{state}{rejected};
+ return map {
+ sprintf("%s-%s-%s.%s",
+ URPM::fullname_parts($rejected->{$_}, $_))
+ } urpm::select::removed_packages(undef, $urpm->{state});
}
sub is_locale_available {