summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-07 12:00:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-07 12:00:29 +0000
commit9c46df437e09357865998ab42cabd0fcf6befb9d (patch)
tree55826e2127a0e4d7035c8af6d4a0ac71e2da9b94 /urpm.pm
parent4ab87638c1909e87503de5d929440b136e2e6438 (diff)
downloadurpmi-9c46df437e09357865998ab42cabd0fcf6befb9d.tar
urpmi-9c46df437e09357865998ab42cabd0fcf6befb9d.tar.gz
urpmi-9c46df437e09357865998ab42cabd0fcf6befb9d.tar.bz2
urpmi-9c46df437e09357865998ab42cabd0fcf6befb9d.tar.xz
urpmi-9c46df437e09357865998ab42cabd0fcf6befb9d.zip
ask user before installing a package that matching part of the name
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index b6de2d4b..43d6d102 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2267,6 +2267,10 @@ sub search_packages {
);
$result = 0;
} else {
+ if (!@{$exact_a{$_} || $exact_ra{$_} || []}) {
+ #- we found a non-exact match
+ $result = 'substring';
+ }
foreach (values %l) {
my $best;
foreach (@$_) {