diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-07-01 01:48:43 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-07-01 01:48:43 +0000 |
commit | 09e6207d12f3332d52b567d1828939d3c925a939 (patch) | |
tree | 7c8f070af35fec9e4c703f54d5d8e612a77a50ed | |
parent | 40c9a9217f7b7c11c558ba577f91c1f88936d385 (diff) | |
download | urpmi-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-x | urpmi | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } } |