create last_occurrence at the time of the first crash
This commit is contained in:
parent
eaf24d6cc8
commit
6af645689f
@ -0,0 +1,32 @@
|
||||
From d975b074727f42e67a2c27a72a87d623da926c15 Mon Sep 17 00:00:00 2001
|
||||
From: Jiri Moskovcak <jmoskovc@redhat.com>
|
||||
Date: Mon, 6 May 2013 14:55:24 +0200
|
||||
Subject: [LIBREPORT PATCH 8/8] create last_occurrence at the time of the first
|
||||
crash
|
||||
|
||||
- closes #161
|
||||
|
||||
Signed-off-by: Jiri Moskovcak <jmoskovc@redhat.com>
|
||||
Signed-off-by: Richard Marko <rmarko@fedoraproject.org>
|
||||
---
|
||||
src/lib/dump_dir.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/lib/dump_dir.c b/src/lib/dump_dir.c
|
||||
index a8e9a77..360536f 100644
|
||||
--- a/src/lib/dump_dir.c
|
||||
+++ b/src/lib/dump_dir.c
|
||||
@@ -612,7 +612,10 @@ void dd_create_basic_files(struct dump_dir *dd, uid_t uid, const char *chroot_di
|
||||
{
|
||||
time_t t = time(NULL);
|
||||
sprintf(long_str, "%lu", (long)t);
|
||||
+ /* first occurrence */
|
||||
dd_save_text(dd, FILENAME_TIME, long_str);
|
||||
+ /* last occurrence */
|
||||
+ dd_save_text(dd, FILENAME_LAST_OCCURRENCE, long_str);
|
||||
}
|
||||
free(time_str);
|
||||
|
||||
--
|
||||
1.8.1.4
|
||||
|
@ -5,7 +5,7 @@
|
||||
Summary: Generic library for reporting various problems
|
||||
Name: libreport
|
||||
Version: 2.1.4
|
||||
Release: 2%{?dist}
|
||||
Release: 4%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Libraries
|
||||
URL: https://fedorahosted.org/abrt/
|
||||
@ -18,6 +18,7 @@ Patch2: 0002-reporter-bugzilla-remove-recently-added-aux.-files-f.patch
|
||||
Patch3: 0003-do-not-build-or-install-any-piece-of-BZ-when-without.patch
|
||||
Patch4: 0004-do-not-build-or-install-BZ-dependencies-when-without.patch
|
||||
Patch6: 0006-updated-translation.patch
|
||||
Patch8: 0008-create-last_occurrence-at-the-time-of-the-first-cras.patch
|
||||
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: gtk3-devel
|
||||
@ -281,6 +282,7 @@ infrastructure or uploading the gathered data over ftp/scp...
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch6 -p1
|
||||
%patch8 -p1
|
||||
# koji in f19 has new autotools, so we need to regenerate everything
|
||||
cp %SOURCE1 %_builddir/%{name}-%{version}
|
||||
./autogen.sh
|
||||
@ -493,6 +495,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon May 06 2013 Jakub Filak <jfilak@redhat.com> 2.1.4-4
|
||||
- create last_occurrence at the time of the first crash
|
||||
|
||||
* Fri May 03 2013 Jakub Filak <jfilak@redhat.com> 2.1.4-2
|
||||
- update translation
|
||||
- reporter-bugzilla: provide version of libreport
|
||||
|
Loading…
Reference in New Issue
Block a user