aboutsummaryrefslogtreecommitdiffstats
path: root/URPM/Resolve.pm
diff options
context:
space:
mode:
Diffstat (limited to 'URPM/Resolve.pm')
-rw-r--r--URPM/Resolve.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index f47b562..a2c30a4 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -1012,10 +1012,9 @@ sub _handle_diff_provides {
#- already installed.
my @packages = find_candidate_packages_($urpm, $p->name, $state->{rejected});
@packages =
- grep { ($_->name eq $p->name ||
+ grep { ($_->name eq $p->name ? $_->fullname ne $p->fullname :
$_->obsoletes_overlap($p->name . " == " . $p->epoch . ":" . $p->version . "-" . $p->release))
- && $_->fullname ne $p->fullname &&
- unsatisfied_requires($urpm, $db, $state, $_, name => $n) == 0 }
+ && unsatisfied_requires($urpm, $db, $state, $_, name => $n) == 0 }
@packages;
if (!@packages) {