aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-12 14:38:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-12 14:38:51 +0000
commitb5fd62f19464a8bbdf89e48e8067c80acb27f2a8 (patch)
treea4eab6e9d377f2d8f7494905b79890352d91bb89
parent5b3bbc07dd5849a9461e19b149fbfd6b4c888d30 (diff)
downloadperl-URPM-b5fd62f19464a8bbdf89e48e8067c80acb27f2a8.tar
perl-URPM-b5fd62f19464a8bbdf89e48e8067c80acb27f2a8.tar.gz
perl-URPM-b5fd62f19464a8bbdf89e48e8067c80acb27f2a8.tar.bz2
perl-URPM-b5fd62f19464a8bbdf89e48e8067c80acb27f2a8.tar.xz
perl-URPM-b5fd62f19464a8bbdf89e48e8067c80acb27f2a8.zip
replacing {backtrack}{closure} with {closure} since it looks like it was a typo
-rw-r--r--URPM.pm1
-rw-r--r--URPM/Resolve.pm4
2 files changed, 2 insertions, 3 deletions
diff --git a/URPM.pm b/URPM.pm
index 4a3b368..2673825 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -805,7 +805,6 @@ B<rejected>: { fullname => {
backtrack => { # those info are only used to display why package is unselected
promote => [ name ], keep => [ fullname ],
unsatisfied => [ id|property ],
- closure => { fullname => undef },
},
closure => { fullname => { old_requested => bool,
unsatisfied => [ id|property ],
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 3040859..025de72 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -444,7 +444,7 @@ sub backtrack_selected {
foreach (@l) {
#- disable all these packages in order to avoid selecting them again.
$_->fullname eq $dep->{from}->fullname or
- $state->{rejected}{$_->fullname}{backtrack}{closure}{$dep->{from}->fullname} = undef;
+ $state->{rejected}{$_->fullname}{closure}{$dep->{from}->fullname} ||= undef;
}
}
#- the package is already rejected, we assume we can add another reason here!
@@ -491,7 +491,7 @@ sub backtrack_selected_psel_keep {
foreach (@l) {
#- disable all these packages in order to avoid selecting them again.
$_->fullname eq $psel->fullname or
- $state->{rejected}{$_->fullname}{backtrack}{closure}{$psel->fullname} = undef;
+ $state->{rejected}{$_->fullname}{closure}{$psel->fullname} ||= undef;
}
}
#- to simplify, a reference to list or standalone elements may be set in keep.