From 5539871b9bfbc7562bc549fc56f99b3ea3c0ad55 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 20 Aug 2008 16:41:16 +0000 Subject: - 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) --- urpm/select.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'urpm/select.pm') 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 { -- cgit v1.2.1