aboutsummaryrefslogtreecommitdiffstats
path: root/URPM/Resolve.pm
diff options
context:
space:
mode:
Diffstat (limited to 'URPM/Resolve.pm')
-rw-r--r--URPM/Resolve.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 34ac590..61429c2 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -32,6 +32,12 @@ sub packages_to_remove {
$state->{rejected}{$_}{removed} && !$state->{rejected}{$_}{obsoleted};
} keys %{$state->{rejected} || {}};
}
+sub removed_or_obsoleted_packages {
+ my ($state) = @_;
+ grep {
+ $state->{rejected}{$_}{removed} || $state->{rejected}{$_}{obsoleted};
+ } keys %{$state->{rejected} || {}};
+}
#- Find candidates packages from a require string (or id).
#- Takes care of direct choices using the '|' separator.