summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2010-08-19 09:58:02 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2010-08-19 09:58:02 +0000
commit7e00dfda9d83233da812be9c669cb83c28466301 (patch)
treeae1ab696d7d77046e5eeaf7c67918faa7ec71534
parent3b8189075640ca0fe8704fc2e36d8cecf1167817 (diff)
downloadurpmi-7e00dfda9d83233da812be9c669cb83c28466301.tar
urpmi-7e00dfda9d83233da812be9c669cb83c28466301.tar.gz
urpmi-7e00dfda9d83233da812be9c669cb83c28466301.tar.bz2
urpmi-7e00dfda9d83233da812be9c669cb83c28466301.tar.xz
urpmi-7e00dfda9d83233da812be9c669cb83c28466301.zip
dudf: add missing calls to dudf_exittopic/rpm5
When there are deps issues (for example), ie an exit code 17 is returned, dudf_exit wasn't called. Patch by Alexandre Lissy
-rwxr-xr-xurpmi2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index f6e3dd8a..591e911d 100755
--- a/urpmi
+++ b/urpmi
@@ -510,6 +510,7 @@ that are older than the installed ones:\n%s", $list);
print "$msg\n";
} else {
my $noexpr = N("Nn");
+ dudf_invoke($dudf, "dudf_exit", 17, $msg);
$msg .= N("\nContinue installation anyway?");
$force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 17;
}
@@ -525,6 +526,7 @@ if (@ask_unselect) {
print "$msg\n";
} else {
my $noexpr = N("Nn");
+ dudf_invoke($dudf, "dudf_exit", 17, $msg);
$msg .= N("\nContinue installation anyway?");
$force || message_input_($msg . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 17;
}