aboutsummaryrefslogtreecommitdiffstats
path: root/URPM/Resolve.pm
diff options
context:
space:
mode:
Diffstat (limited to 'URPM/Resolve.pm')
-rw-r--r--URPM/Resolve.pm13
1 files changed, 5 insertions, 8 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 0424951..cca9a2d 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -405,14 +405,11 @@ sub backtrack_selected {
exists $state->{backtrack}{selected}{$_->id} and next;
#- a package if found is problably rejected or there is a problem.
if ($state->{rejected}{$_->fullname}) {
- #- keep in mind a backtrack has happening here...
- _add_rejected_backtrack($state, $_, {
- exists $dep->{promote} ? (promote => [ $dep->{promote} ]) : @{[]},
- exists $dep->{psel} ? (psel => $dep->{psel}) : @{[]},
- });
- #- backtrack callback should return a strictly positive value if the selection of the new
- #- package is prefered over the currently selected package.
- next;
+ #- keep in mind a backtrack has happening here...
+ exists $dep->{promote} and _add_rejected_backtrack($state, $_, { promote => [ $dep->{promote} ] });
+ #- backtrack callback should return a strictly positive value if the selection of the new
+ #- package is prefered over the currently selected package.
+ next;
}
$state->{backtrack}{selected}{$_->id} = undef;