diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-07 12:00:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-07 12:00:29 +0000 |
commit | 9c46df437e09357865998ab42cabd0fcf6befb9d (patch) | |
tree | 55826e2127a0e4d7035c8af6d4a0ac71e2da9b94 /urpm.pm | |
parent | 4ab87638c1909e87503de5d929440b136e2e6438 (diff) | |
download | urpmi-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.pm | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 (@$_) { |