[Bug 79247] Re: bughelper fails when processing ubiquity

Alex Muntada ubuntu at alexm.org
Mon Jan 15 23:28:54 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.


== 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:

-- 
bughelper fails when processing ubiquity
https://launchpad.net/bugs/79247




More information about the Ubuntu-bugsquad mailing list