Comment 1 for bug 79546

Revision history for this message
Alex Muntada (alex.muntada) wrote :

The diff below against latest Daniel's branch shows the problem and how to get a full list of source packages. Since there are more than one, I guess that self.sourcepackage should be a list (or set); but I have to figure out how the whole thing works yet, so I can provide a wider patch.

Please, note that those "print" lines on the diff are only for debugging purposes, to let you see the multiple source package results for each bug.

== modified file 'bugHelper/HTMLOperations.py'
--- bugHelper/HTMLOperations.py 2007-01-15 16:38:45 +0000
+++ bugHelper/HTMLOperations.py 2007-01-15 23:21:30 +0000
@@ -61,8 +61,10 @@
         sock.close()

         if not len(self.sourcepackage):
- titleFilter = '<title>Bug #[0-9]* in (.*?) .*: .*'
- filteredSourcePackage = re.findall(titleFilter, self.text)
+ viewstatusFilter = 'viewstatus">([^ ]*) [^<]*</a>'
+ filteredSourcePackage = re.findall(viewstatusFilter, self.text)
+ print bugnumber
+ print filteredSourcePackage
             self.sourcepackage = filteredSourcePackage[0]

         if cl.attachments: