summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-03-24 10:00:32 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-03-24 10:00:32 +0000
commitcaab74b821298d22d677a9df68a8e07ece8aad34 (patch)
tree76cdb0116c8e3630f7a58f310e4239252c8332f2
parenta32b72a864e1f832032d3e33a96d1cb0f76df64a (diff)
downloadurpmi-caab74b821298d22d677a9df68a8e07ece8aad34.tar
urpmi-caab74b821298d22d677a9df68a8e07ece8aad34.tar.gz
urpmi-caab74b821298d22d677a9df68a8e07ece8aad34.tar.bz2
urpmi-caab74b821298d22d677a9df68a8e07ece8aad34.tar.xz
urpmi-caab74b821298d22d677a9df68a8e07ece8aad34.zip
Return error code when the install is aborted during an upgrade
-rwxr-xr-xurpmi4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index fec56f1a..f9927e2f 100755
--- a/urpmi
+++ b/urpmi
@@ -493,7 +493,7 @@ that are older than the installed ones:\n%s", $list);
} else {
my $noexpr = N("Nn");
$msg .= N("\nContinue installation anyway?");
- $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 0;
+ $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 1;
}
}
@@ -508,7 +508,7 @@ if (@ask_unselect) {
} else {
my $noexpr = N("Nn");
$msg .= N("\nContinue installation anyway?");
- $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 0;
+ $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 1;
}
}