aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-11 13:37:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-11 13:37:36 +0000
commit90d637bdfeb9ae3b8274ae05024254726edd338b (patch)
treee4181c539e8328b01e735c71c7378b72ae4cf9a9
parent49c3eab1c7be20df2a1e7674e66c0250cd700500 (diff)
downloadperl-URPM-90d637bdfeb9ae3b8274ae05024254726edd338b.tar
perl-URPM-90d637bdfeb9ae3b8274ae05024254726edd338b.tar.gz
perl-URPM-90d637bdfeb9ae3b8274ae05024254726edd338b.tar.bz2
perl-URPM-90d637bdfeb9ae3b8274ae05024254726edd338b.tar.xz
perl-URPM-90d637bdfeb9ae3b8274ae05024254726edd338b.zip
simplify
-rw-r--r--URPM/Resolve.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index c5f4743..c82e878 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -799,10 +799,9 @@ sub _compute_diff_provides_one {
#- since the originally requested packages (or other
#- non-installed ones) could be unselected by the following
#- operation, remember them, to warn the user
- my @unselected_uninstalled = grep {
+ $state->{unselected_uninstalled} = [ grep {
!$_->flag_installed;
- } disable_selected($urpm, $db, $state, $pkg);
- $state->{unselected_uninstalled} = \@unselected_uninstalled;
+ } disable_selected($urpm, $db, $state, $pkg) ];
}
} elsif ($satisfied) {
$rv->{obsoleted} = 1;