diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-04 17:06:02 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-04 17:06:02 +0000 |
commit | 4f3ceef2869fb52a1e6d11f4a6a89899bc069d65 (patch) | |
tree | f9f9d7468e1480c51f760985b783eec7b040c157 | |
parent | 9d7941b1ccd1d887dbba848a4a7131c03edf0082 (diff) | |
download | urpmi-4f3ceef2869fb52a1e6d11f4a6a89899bc069d65.tar urpmi-4f3ceef2869fb52a1e6d11f4a6a89899bc069d65.tar.gz urpmi-4f3ceef2869fb52a1e6d11f4a6a89899bc069d65.tar.bz2 urpmi-4f3ceef2869fb52a1e6d11f4a6a89899bc069d65.tar.xz urpmi-4f3ceef2869fb52a1e6d11f4a6a89899bc069d65.zip |
Make urpmi return exit status 15 if all packages were already installed
-rwxr-xr-x | urpmi | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -684,8 +684,9 @@ if ($nok) { if ($test) { message(N("Installation is possible")); } elsif (@names || @src_names || @files || @src_files || $auto_select) { - @{$state->{transaction} || []} == 0 && @ask_unselect == 0 && $verbose >= 0 and - message(N("The package(s) are already installed")); + @{$state->{transaction} || []} == 0 && @ask_unselect == 0 && $verbose >= 0 + and message(N("The package(s) are already installed")); + $exit_code = 15; } } |