summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-07-01 01:48:43 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-07-01 01:48:43 +0000
commit09e6207d12f3332d52b567d1828939d3c925a939 (patch)
tree7c8f070af35fec9e4c703f54d5d8e612a77a50ed
parent40c9a9217f7b7c11c558ba577f91c1f88936d385 (diff)
downloadurpmi-09e6207d12f3332d52b567d1828939d3c925a939.tar
urpmi-09e6207d12f3332d52b567d1828939d3c925a939.tar.gz
urpmi-09e6207d12f3332d52b567d1828939d3c925a939.tar.bz2
urpmi-09e6207d12f3332d52b567d1828939d3c925a939.tar.xz
urpmi-09e6207d12f3332d52b567d1828939d3c925a939.zip
Patch by Pascal Terjan for bug 16663 : display the packages names urpmi
guessed when it issues the message 'all packages are already installed' (except when the actual package name was requested).
-rwxr-xr-xurpmi5
1 files changed, 5 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index 130a705d..02e55d6e 100755
--- a/urpmi
+++ b/urpmi
@@ -718,6 +718,11 @@ if ($nok) {
} elsif (@names || @src_names || @files || @src_files || $auto_select) {
if (@{$state->{transaction} || []} == 0 && @ask_unselect == 0) {
message(N("The package(s) are already installed")) if $verbose >= 0;
+ if ($verbose >= 0 && !$auto_select) {
+ my @packages = map { $urpm->{depslist}[$_]->name } keys %requested;
+ my @guessed = difference2(\@packages, \(@names, @src_names));
+ message(N("The following package names were assumed : %s", join ", ", @guessed)) if @guessed;
+ }
$exit_code = 15 if our $expect_install;
}
}