On Wed, 2012-06-27 at 14:39 +0100, Ben Hutchings wrote:
> On Wed, 2012-06-27 at 07:56 -0500, Jonathan Nieder wrote:
> > Source: linux
> > Version: 3.2.20-1
> > 
> > Hi kernel maintainers,
> > 
> > Gergely Nagy wrote:
> > 
> > > reassign 679226 src:linux-2.6 3.2.20-1
> > 
> > Several bugs seem to have been filed against the nonexistent 'src'
> > package recently.  I am guessing this means reportbug or some related
> > tool does not know how to deal with 'src:linux' as a package name.
> > Please use plain 'linux' for now.
> 
> reportbug-ng is doing this.  Let's get it fixed.

That was easy:

diff -Nru reportbug-ng-1.26/debian/changelog 
reportbug-ng-1.26+nmu1/debian/changelog
--- reportbug-ng-1.26/debian/changelog  2011-12-14 18:46:34.000000000 +0000
+++ reportbug-ng-1.26+nmu1/debian/changelog     2012-06-27 14:44:39.000000000 
+0100
@@ -1,3 +1,9 @@
+reportbug-ng (1.26+nmu1) unstable; urgency=low
+
+  * Fix splitting of name, value in bug control file (Closes: #679252)
+
+ -- Ben Hutchings <[email protected]>  Wed, 27 Jun 2012 14:41:46 +0100
+
 reportbug-ng (1.26) unstable; urgency=low
 
   * Fix "Option setting does not work" (Closes: #644763)
diff -Nru reportbug-ng-1.26/src/bug.py reportbug-ng-1.26+nmu1/src/bug.py
--- reportbug-ng-1.26/src/bug.py        2011-12-14 19:04:07.000000000 +0000
+++ reportbug-ng-1.26+nmu1/src/bug.py   2012-06-27 14:41:28.000000000 +0100
@@ -20,7 +20,7 @@
         return control
     f = file(path)
     for line in f.readlines():
-        tokens = line.split(":")
+        tokens = line.split(":", 1)
         if len(tokens) < 2:
             continue
         cmd = str(tokens[0].strip().lower())
--- END ---

This results in a working bug list and 'New Bugreport' dialog, but I
didn't go as far as submitting a bug.

Ben.

-- 
Ben Hutchings
Lowery's Law:
             If it jams, force it. If it breaks, it needed replacing anyway.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to