From c4e62440a3a3b70f654caac08c9d35c5d2a20971 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 16 Apr 2003 13:25:29 +0000 Subject: improved output of search_packages for multiple found. --- urpm.pm | 2 +- urpmi.spec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/urpm.pm b/urpm.pm index f762a3bc..b4fbc4ff 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2066,7 +2066,7 @@ sub search_packages { $urpm->{error}(N("no package named %s", $_)); $result = 0; } elsif (values(%l) > 1 && !$options{all}) { - $urpm->{error}(N("The following packages contain %s: %s", $_, join(' ', keys %l))); + $urpm->{error}(N("The following packages contain %s: %s", $_, "\n".join("\n", sort { $a cmp $b } keys %l))); $result = 0; } else { foreach (values %l) { diff --git a/urpmi.spec b/urpmi.spec index 82bf09e2..8455234d 100644 --- a/urpmi.spec +++ b/urpmi.spec @@ -203,6 +203,7 @@ $urpm->update_media; - added --sortmedia option to urpmi and urpmq. - improved MD5SUM file for hdlist or synthesis management, added md5sum in /etc/urpmi/urpmi.cfg for each media when needed. +- improved output when multiple package are found when searching. * Mon Apr 14 2003 François Pons 4.3-1mdk - avoid scanning all urpmi cache for checking unused rpm files. -- cgit v1.2.1