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) --- NEWS | 4 ++++ urpm/select.pm | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7e36a33d..23eb22fb 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +- 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) + Version 6.4 - 14 August 2008, Thierry Vignaud - gurpmi 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