summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorOlivier Rosello <orosello@mandriva.com>2009-08-27 08:08:02 +0000
committerOlivier Rosello <orosello@mandriva.com>2009-08-27 08:08:02 +0000
commit0c8dd11576c145e2ed70a01212c25e399874a0db (patch)
tree659aadd5bd0abf2a635c761fc2ea002fbadec08a /urpm
parent25f698fe7376dac9d3ffdb5a642c3535ec77a519 (diff)
downloadurpmi-0c8dd11576c145e2ed70a01212c25e399874a0db.tar
urpmi-0c8dd11576c145e2ed70a01212c25e399874a0db.tar.gz
urpmi-0c8dd11576c145e2ed70a01212c25e399874a0db.tar.bz2
urpmi-0c8dd11576c145e2ed70a01212c25e399874a0db.tar.xz
urpmi-0c8dd11576c145e2ed70a01212c25e399874a0db.zip
correct bug #52954
Diffstat (limited to 'urpm')
-rw-r--r--urpm/dudf.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpm/dudf.pm b/urpm/dudf.pm
index ec597617..e9988281 100644
--- a/urpm/dudf.pm
+++ b/urpm/dudf.pm
@@ -354,7 +354,9 @@ sub compute_pkgs_user {
sub write_dudf {
my ($self) = @_;
- if ($self->{force_dudf} != 0 || ($self->{exit_code} != 0 && ${$self->{dudf_urpm}}->{options}{auto} != 1)) {
+ if ( (!${$self->{dudf_urpm}}->{options}{auto}) &&
+ ( ($self->{exit_code} > 9) ||
+ (!$self->{exit_code} && $self->{force_dudf}) ) ) {
my $noexpr = N("Nn");
my $msg = N("A problem has been encountered. You can help Mandriva to improve package\ninstallation by uploading a DUDF report file.\nThis is a part of the Mancoosi european research project.\nMore at http://www.mancoosi.org\n");
$msg .= N("Do you want to upload to Mandriva a DUDF report?");