aboutsummaryrefslogtreecommitdiffstats
path: root/URPM
diff options
context:
space:
mode:
Diffstat (limited to 'URPM')
-rw-r--r--URPM/Resolve.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 04f9570..d8eca12 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -1028,10 +1028,9 @@ sub _handle_diff_provides {
my @best;
foreach (@l) {
my @packages = find_candidate_packages_($urpm, $_, $state->{rejected});
- $best = join('|', map { $_->id }
- grep { $_->fullname ne $p->fullname }
- @packages);
- $best and push @best, $best;
+ if (@packages = grep { $_->fullname ne $p->fullname } @packages) {
+ push @best, join('|', map { $_->id } @packages);
+ }
}
if (@best == @l) {