From 6646ccbdd19419aa3b8aebdb27778ea100332ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Victor=20Duarte=20Martins?= Date: Wed, 10 Aug 2011 18:49:25 +0000 Subject: Add parsing of fullnames to NVRA after urpm::select::find_packages_to_remove (fix #63222). --- NEWS | 3 +++ Rpmdrake/gui.pm | 5 +++++ 2 files changed, 8 insertions(+) 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 { -- cgit v1.2.1