summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-04 17:06:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-04 17:06:02 +0000
commit4f3ceef2869fb52a1e6d11f4a6a89899bc069d65 (patch)
treef9f9d7468e1480c51f760985b783eec7b040c157
parent9d7941b1ccd1d887dbba848a4a7131c03edf0082 (diff)
downloadurpmi-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-xurpmi5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index 6e7dcdd0..7b835678 100755
--- a/urpmi
+++ b/urpmi
@@ -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;
}
}