[Bug 79546] Re: Parsing multiple source packages in a bug
Alex Muntada
ubuntu at alexm.org
Tue Jan 16 14:05:30 UTC 2007
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:
--
Parsing multiple source packages in a bug
https://launchpad.net/bugs/79546
More information about the Ubuntu-bugsquad
mailing list