← Back to team overview

apport-hackers team mailing list archive

[Merge] lp:~brian-murray/apport/apport-collect-tag into lp:apport

 

Brian Murray has proposed merging lp:~brian-murray/apport/apport-collect-tag into lp:apport.

Requested reviews:
  Apport upstream developers (apport-hackers)


I noticed that apport-collected bug reports aren't getting tagged with the release unlike other apport bug reports.  This seems like a useful addition to apport so I added it.
-- 
https://code.launchpad.net/~brian-murray/apport/apport-collect-tag/+merge/44092
Your team Apport upstream developers is requested to review the proposed merge of lp:~brian-murray/apport/apport-collect-tag into lp:apport.
=== modified file 'apport/crashdb_impl/launchpad.py'
--- apport/crashdb_impl/launchpad.py	2010-11-26 16:09:25 +0000
+++ apport/crashdb_impl/launchpad.py	2010-12-17 19:28:15 +0000
@@ -363,6 +363,9 @@
             # with apport-collect
             x = bug.tags[:] # LP#254901 workaround
             x.append('apport-collected')
+            # add any tags (like the release) to the bug
+            if report.has_key('Tags'):
+                x.append(report['Tags'])
             bug.tags = x
             bug.lp_save()
             bug = self.launchpad.bugs[id] # fresh bug object, LP#336866 workaround