summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-03-24 14:58:23 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-03-24 14:58:23 +0000
commitba06798039816c9687949c136ac7a806557eeb08 (patch)
tree0941351a209d8b9536f837ccd4e3278e969bbb9c
parent8267bc826550554e98818b11907ab45d848cf441 (diff)
downloadurpmi-ba06798039816c9687949c136ac7a806557eeb08.tar
urpmi-ba06798039816c9687949c136ac7a806557eeb08.tar.gz
urpmi-ba06798039816c9687949c136ac7a806557eeb08.tar.bz2
urpmi-ba06798039816c9687949c136ac7a806557eeb08.tar.xz
urpmi-ba06798039816c9687949c136ac7a806557eeb08.zip
Change error code when some packages couldn't be installed
-rw-r--r--pod/urpmi.8.pod4
-rwxr-xr-xurpmi4
2 files changed, 6 insertions, 2 deletions
diff --git a/pod/urpmi.8.pod b/pod/urpmi.8.pod
index 7e274c91..5cd5dc8e 100644
--- a/pod/urpmi.8.pod
+++ b/pod/urpmi.8.pod
@@ -505,6 +505,10 @@ No package installed (when using --expect-install)
Bad signature
+=item 17
+
+Some packages couldn't be installed or upgraded
+
=back
=head1 BUG REPORTS
diff --git a/urpmi b/urpmi
index f9927e2f..f61d4b5b 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 1;
+ $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 17;
}
}
@@ -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 1;
+ $force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 17;
}
}