summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-18 14:52:45 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-18 14:52:45 +0000
commitb1ec22fdf3c6be460b6759d79433e81fea593da3 (patch)
treee5ee6898dcaa5ec0331378e0588b43d71a657c80
parente7f8db8df7f845ee162a63f17a6a3e2a7d4795ab (diff)
downloaddrakx-b1ec22fdf3c6be460b6759d79433e81fea593da3.tar
drakx-b1ec22fdf3c6be460b6759d79433e81fea593da3.tar.gz
drakx-b1ec22fdf3c6be460b6759d79433e81fea593da3.tar.bz2
drakx-b1ec22fdf3c6be460b6759d79433e81fea593da3.tar.xz
drakx-b1ec22fdf3c6be460b6759d79433e81fea593da3.zip
(get_top_of_trace,report_bug_to_bugzilla) add error to summary when
crashing in order to help sort duplicates
-rw-r--r--perl-install/NEWS2
-rwxr-xr-xperl-install/standalone/drakbug7
2 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 733175712..c5844efe3 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -3,6 +3,8 @@
- diskdrake:
o don't crash when creating a partition in LVM with the partition type
buttons (#38078)
+- drakbug:
+ o add error to summary when crashing in order to help sort duplicates
Version 12.5 - 5 March 2009
diff --git a/perl-install/standalone/drakbug b/perl-install/standalone/drakbug
index d6cbdf6e3..9c2ae61ed 100755
--- a/perl-install/standalone/drakbug
+++ b/perl-install/standalone/drakbug
@@ -239,6 +239,12 @@ sub get_package {
$rpm_package;
}
+sub get_top_of_trace {
+ my ($error) = @_;
+ return if !$error;
+ sprintf(" (%s)", first(split(/\n/, $error)));
+}
+
sub report_bug_to_bugzilla() {
my $p = $package->get_text;
my ($product, $version) = $p =~ /^(.*)-([^-]+-[^-]+(mdk|mdv.*))$/; # FIXME: fragile!
@@ -274,6 +280,7 @@ sub report_bug_to_bugzilla() {
if_($incident,
join('', "short_desc=$prog%20",
($segfaulted ? 'segfaulted' : 'crashed'),
+ if_(!$gdb_trace, get_top_of_trace($error)),
),
),
'comment=' . uri_escape(