summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/select.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index 5d0da66f..14ae77fc 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -179,9 +179,12 @@ sub search_packages {
$best = $_;
}
}
- $packages->{$best->id} = 1;
- $urpm->{debug} and $urpm->{debug}("search_packages: found " . $best->fullname . " matching $v");
- $best->set_flag_skip(0); #- reset skip flag as manually selected.
+ my @l = grep { $_->fullname eq $best->fullname } @$_;
+ $packages->{join('|', map { $_->id } @l)} = 1;
+ foreach my $pkg (@l) {
+ $urpm->{debug} and $urpm->{debug}("search_packages: found " . $pkg->fullname . " matching $v");
+ $pkg->set_flag_skip(0); #- reset skip flag as manually selected.
+ }
}
}
}