diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-03-21 07:28:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-03-21 07:28:13 +0000 |
commit | 73cb41dad6924966006c0b00360c1d4f3221acbe (patch) | |
tree | e60cf1f5ffd35aa114f5a03f395f43f61ba04fba | |
parent | 6766636433d00baae142dc994bd295bce1c7e344 (diff) | |
download | urpmi-73cb41dad6924966006c0b00360c1d4f3221acbe.tar urpmi-73cb41dad6924966006c0b00360c1d4f3221acbe.tar.gz urpmi-73cb41dad6924966006c0b00360c1d4f3221acbe.tar.bz2 urpmi-73cb41dad6924966006c0b00360c1d4f3221acbe.tar.xz urpmi-73cb41dad6924966006c0b00360c1d4f3221acbe.zip |
treat formatList like others...
-rw-r--r-- | urpm/select.pm | 4 | ||||
-rw-r--r-- | urpm/util.pm | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/urpm/select.pm b/urpm/select.pm index c2c3fe48..1e462a5e 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -4,7 +4,7 @@ package urpm::select; use strict; use urpm::msg; -use urpm::util qw(any intersection member min partition uniq); +use urpm::util qw(any formatList intersection member min partition uniq); use urpm::sys; use URPM; @@ -220,7 +220,7 @@ 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, urpm::util::formatList(4, sort { $a cmp $b } keys %l)) . "\n" . + $v, formatList(4, sort { $a cmp $b } keys %l)) . "\n" . N("You should use \"-a\" to use all of them") ); $result = 0; diff --git a/urpm/util.pm b/urpm/util.pm index d4aaa2ea..ca828cdc 100644 --- a/urpm/util.pm +++ b/urpm/util.pm @@ -18,6 +18,7 @@ our @EXPORT = qw(add2hash_ file2absolute_file file_size find + formatList intersection max member |