summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq10
1 files changed, 6 insertions, 4 deletions
diff --git a/urpmq b/urpmq
index b853f579..ab3f458e 100755
--- a/urpmq
+++ b/urpmq
@@ -356,11 +356,13 @@ if ($urpm::args::options{list_aliases}) {
} else {
my $pkgs_text = join(' ', map { $_->name } @pkgs);
if ($urpm::args::options{info}) {
- $urpm->{info}(P("no hdlist for medium \"%s\", only partial result for package %s",
- "no hdlist for medium \"%s\", only partial result for packages %s", int(@pkgs), $medium->{name}, $pkgs_text));
+ $urpm->{info}((int(@pkgs) == 1) ?
+ N("no hdlist for medium \"%s\", only partial result for package %s", $medium->{name}, $pkgs_text)
+ : N("no hdlist for medium \"%s\", only partial result for packages %s", $medium->{name}, $pkgs_text));
} else {
- $urpm->{error}(P("no hdlist for medium \"%s\", unable to return any result for package %s",
- "no hdlist for medium \"%s\", unable to return any result for packages %s", int(@pkgs), $medium->{name}, $pkgs_text));
+ $urpm->{error}((int(@pkgs) == 1) ?
+ N("no hdlist for medium \"%s\", unable to return any result for package %s",$medium->{name}, $pkgs_text)
+ : N("no hdlist for medium \"%s\", unable to return any result for packages %s", $medium->{name}, $pkgs_text));
}
}
}