[rhel7-branch][PATCH] Tell libreport if it is a final release or not (#1063690)
Vratislav Podzimek
vpodzime at redhat.com
Wed Feb 12 11:27:17 UTC 2014
Reporting to bugzilla should be enabled/disabled on pre-release/final composes
respecively.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/exception.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index 13f5ba9..9767c00 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -38,6 +38,7 @@ from pyanaconda.constants import ROOT_PATH, THREAD_EXCEPTION_HANDLING_TEST
from pyanaconda.threads import threadMgr
from pyanaconda.i18n import _
from pyanaconda import flags
+from pyanaconda import product
# pylint: disable-msg=E0611
from gi.repository import GLib
@@ -246,7 +247,11 @@ def initExceptionHandling(anaconda):
conf.register_callback("lsblk_output", lsblk_callback, attchmnt_only=True)
conf.register_callback("nmcli_dev_list", nmcli_dev_list_callback,
attchmnt_only=True)
+
+ # provide extra information for libreport
conf.register_callback("type", lambda: "anaconda", attchmnt_only=True)
+ if not product.isFinal:
+ conf.register_callback("release_type", lambda: "pre-release", attchmnt_only=True)
handler = AnacondaExceptionHandler(conf, anaconda.intf.meh_interface,
ReverseExceptionDump, anaconda.intf.tty_num)
--
1.8.5.3
More information about the anaconda-patches
mailing list