diff -u apport-2.9.1/debian/changelog apport-2.9.1/debian/changelog --- apport-2.9.1/debian/changelog +++ apport-2.9.1/debian/changelog @@ -1,3 +1,10 @@ +apport (2.9.1-0ubuntu2) raring; urgency=low + + * Add the seed name as bug tag in the ubiquity hook so it's possible to + filter the bugs by the image that was used. (LP: #1154302) + + -- Philip Muškovac Tue, 12 Mar 2013 21:30:31 +0100 + apport (2.9.1-0ubuntu1) raring; urgency=low * New upstream release: diff -u apport-2.9.1/data/package-hooks/source_ubiquity.py apport-2.9.1/data/package-hooks/source_ubiquity.py --- apport-2.9.1/data/package-hooks/source_ubiquity.py +++ apport-2.9.1/data/package-hooks/source_ubiquity.py @@ -125,0 +126,9 @@ + + # add seed name as Tag so we know which image was used + proc_cmdline = open('/proc/cmdline', 'r') + cmdline = proc_cmdline.read() + proc_cmdline.close() + match = re.search('[^/]+\.seed', cmdline) + if match: + match = match.group(0) + report['Tags'] += ' ' + match[:match.find('.seed')]