summaryrefslogtreecommitdiffstats
path: root/urpm/select.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-08-20 16:41:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-08-20 16:41:16 +0000
commit5539871b9bfbc7562bc549fc56f99b3ea3c0ad55 (patch)
treebf687117fa1a2d87faf7ba0ea76505aa51c709d7 /urpm/select.pm
parent0fca5662e7d4f0a8e2a9436ea860acde4b94ed05 (diff)
downloadurpmi-5539871b9bfbc7562bc549fc56f99b3ea3c0ad55.tar
urpmi-5539871b9bfbc7562bc549fc56f99b3ea3c0ad55.tar.gz
urpmi-5539871b9bfbc7562bc549fc56f99b3ea3c0ad55.tar.bz2
urpmi-5539871b9bfbc7562bc549fc56f99b3ea3c0ad55.tar.xz
urpmi-5539871b9bfbc7562bc549fc56f99b3ea3c0ad55.zip
- urpmi, urpmq:
o do not display all substring matches on stderr, only a subset of them, and suggest to use "-a" to use all matches (#38956)
Diffstat (limited to 'urpm/select.pm')
-rw-r--r--urpm/select.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index 7317aab2..6ae72bcb 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -168,7 +168,8 @@ sub _search_packages {
$urpm->{error}(N("No package named %s", $v));
values(%l) != 0 and $urpm->{error}(
N("The following packages contain %s: %s",
- $v, "\n" . join("\n", sort { $a cmp $b } keys %l))
+ $v, urpm::util::formatList(4, sort { $a cmp $b } keys %l)) . "\n" .
+ N("You should use \"-a\" to use all of them")
);
$result = 0;
} else {