summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-06 15:59:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-06 15:59:07 +0000
commitd464851248d578fb57abf2e1437e33bad2b07b09 (patch)
treeb33060e4a5c561340cf5dc3fd10851de9c59aa3a /urpm
parent3d31e295c06427f024ea53901f8eab2e49dcea43 (diff)
downloadurpmi-d464851248d578fb57abf2e1437e33bad2b07b09.tar
urpmi-d464851248d578fb57abf2e1437e33bad2b07b09.tar.gz
urpmi-d464851248d578fb57abf2e1437e33bad2b07b09.tar.bz2
urpmi-d464851248d578fb57abf2e1437e33bad2b07b09.tar.xz
urpmi-d464851248d578fb57abf2e1437e33bad2b07b09.zip
- urpmi, rpmdrake:
o nice exit code for "bad signature" fatal error. Fixes rpmdrake continuing on bad signature (#44575) (backported from trunk)
Diffstat (limited to 'urpm')
-rw-r--r--urpm/main_loop.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index d7fbb504..546c0828 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -143,7 +143,7 @@ foreach my $set (@{$state->{transaction} || []}) {
: N("The following packages have bad signatures");
my $msg2 = N("Do you want to continue installation ?");
my $p = join "\n", @bad_signatures;
- $callbacks->{bad_signature}->("$msg:\n$p\n", $msg2);
+ $callbacks->{bad_signature}->("$msg:\n$p\n", $msg2) or return 15;
}
}