[Reportbug-maint] Emdebian version strings and the BTS

Neil Williams codehelp at debian.org
Sun Feb 15 11:33:25 UTC 2009

On Sun, 15 Feb 2009 12:09:02 +0100
Sandro Tosi <morph at debian.org> wrote:

> On Sun, Feb 15, 2009 at 11:34, Neil Williams <codehelp at debian.org> wrote:
> > A patch for reportbug is being tested. A large proportion of the
> > development work to actually get Emdebian to the point of two releases
> > only happened after the lenny freeze began. (Not the recent deep
> > freeze, the initial toolchain freeze before DebConf8). (reportbug
> > itself is not currently part of Emdebian for a variety of reasons.)
> I think involve us in this might be of some help (at least because we
> know what's going on around reportbug that should be merged in later
> on).

I only had a quick chance to look at the reportbug issue during FOSDEM
so this is the first time I've had a chance to discuss the idea of how
to patch reportbug with anyone - my next email was to file the bug with
the initial patch and get feedback from the reportbug maintainers.

I should probably have done that the other way around, sorry.

This is my initial stab at a patch:

$ diff -u reportbug-3.41/reportbug reportbug.new/reportbug
--- reportbug-3.41/reportbug	2008-06-04 16:20:36.000000000 +0100
+++ reportbug.new/reportbug	2009-02-06 18:41:59.000000000 +0000
@@ -1193,6 +1193,10 @@
             (pkgversion, pkgavail, depends, recommends, conffiles, maintainer,
              installed, origin, vendor, reportinfo, priority, desc, src_name,
              fulldesc, state) = status
+            emdebian = re.search('em[0-9]$', pkgversion, re.M | re.I)
+            if emdebian:
+                ewrite('%s (%s) is an Emdebian package, redirecting to buildd.emdebian.org.\n',package, pkgversion)
+                package="buildd.emdebian.org"
         buginfo = '/usr/share/bug/' + package
         bugexec = submitas = submitto = presubj = None

Hastily prepared on the Eurostar on the way to FOSDEM and the first
time I've ever had to actually patch python. ;-)

It worked in basic testing but I'm sure you'll have ideas on how it can
be improved.


Neil Williams

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20090215/a9844ec0/attachment.pgp 

More information about the Reportbug-maint mailing list