summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-06 15:43:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-06 15:43:26 +0000
commit2263fff1c0a5fc0c4ab5fe6979148d3546834b91 (patch)
treedcb27ccb35fb8d9a467499aed114ae6ab1487913 /urpmi
parentdd368f3a94158a85906adcd4d261e9fb9bd7c3e1 (diff)
downloadurpmi-2263fff1c0a5fc0c4ab5fe6979148d3546834b91.tar
urpmi-2263fff1c0a5fc0c4ab5fe6979148d3546834b91.tar.gz
urpmi-2263fff1c0a5fc0c4ab5fe6979148d3546834b91.tar.bz2
urpmi-2263fff1c0a5fc0c4ab5fe6979148d3546834b91.tar.xz
urpmi-2263fff1c0a5fc0c4ab5fe6979148d3546834b91.zip
- urpmi, rpmdrake:
o nice exit code for "bad signature" fatal error. Fixes rpmdrake continuing on bad signature (#44575)
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index 9d7bdffb..ca075083 100755
--- a/urpmi
+++ b/urpmi
@@ -642,10 +642,10 @@ my $exit_code = urpm::main_loop::run($urpm, $state,
#- rurpmi always abort here
if ($urpm->{options}{auto} || $restricted) {
print "$msg\n";
- exit 1;
+ 0;
} else {
my $yesexpr = N("Yy");
- $force || message_input_("$msg$msg2" . N(" (y/N) "), boolean => 1) =~ /[$yesexpr]/ or exit 1;
+ $force || message_input_("$msg$msg2" . N(" (y/N) "), boolean => 1) =~ /[$yesexpr]/;
}
},
ask_yes_or_no => sub {