summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--pod/urpmi.8.pod4
-rw-r--r--urpm/main_loop.pm2
-rwxr-xr-xurpmi4
4 files changed, 10 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index aadaf51a..5260aa23 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- urpmi, rpmdrake:
+ o nice exit code for "bad signature" fatal error. Fixes rpmdrake continuing
+ on bad signature (#44575)
- gurpmi:
o do not exit in --auto mode at end of installation which prevents
restarting after priority upgrade
diff --git a/pod/urpmi.8.pod b/pod/urpmi.8.pod
index 64204268..979a3249 100644
--- a/pod/urpmi.8.pod
+++ b/pod/urpmi.8.pod
@@ -492,6 +492,10 @@ Some files are missing and some transactions failed but not all.
Some files are missing and all transactions failed.
+=item 15
+
+Bad signature
+
=back
=head1 BUG REPORTS
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;
}
}
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 {
pan>/+9 * manual updatesThierry Vignaud2005-03-3011-73/+73 * - merge in new strings from drakroamThierry Vignaud2005-03-3071-6580/+9920 * fix makefileThierry Vignaud2005-03-301-1/+1 * multiply fixes translation of 'Service'Pavel Maryanov2005-03-301-17/+15 * s/search/SearchPavel Maryanov2005-03-301-2/+2 * fixed '...mail alert...'Pavel Maryanov2005-03-301-3/+3 * updated Italian filePablo Saratxaga2005-03-291-9/+9 * updated French and Spanish filesPablo Saratxaga2005-03-292-108/+108 * Updates from Eskild HustvedtPer Øyvind Karlsen2005-03-291-4076/+3213 * Added Punjabi filePablo Saratxaga2005-03-291-0/+24637 * Updated translation.Marek Laane2005-03-291-8/+8 * Reinout van Schouwen <reinout@cs.vu.nl>:Reinout van Schouwen2005-03-291-8/+21 * fixed Uninstall fontPavel Maryanov2005-03-291-2/+2 * updated Swedish filePablo Saratxaga2005-03-291-20/+20 * fixed PPPoE, PPPoA,...Pavel Maryanov2005-03-281-13/+13 * updated slovak translationTibor Pittich2005-03-271-4094/+3209 * *** empty log message ***Arpad Biro2005-03-271-3/+3 * UpdatedWilly Sudiarto Raharjo2005-03-271-18/+19 * transl. drakroam messagesAlice Lafox2005-03-271-176/+97 * removed "10.1"Pablo Saratxaga2005-03-275-12/+12 * Oops! Sorry for the critial typo :(Funda Wang2005-03-2669-216/+216 * updated Spanish filePablo Saratxaga2005-03-262-141/+203 * *** empty log message ***Arpad Biro2005-03-261-183/+98 * meloJosé Jorge2005-03-261-318/+233 * updated pot filePablo Saratxaga2005-03-2670-8313/+9571 * s/Mandrakelinux 10.1/Mandrakelinux/. For advertising.Funda Wang2005-03-26