On Wed, 2008-04-23 at 01:41 +0100, Adam D. Barratt wrote:
> > Interestingly, this works:
> > $ dch -a -p wnpp --closes 477218
> > 
> > (for estron, the correct package for that ITP).
> > 
> > tagpending needs to be told about wnpp/ITP bugs but I've never had to
> > tell dch about that before. It seems that it is the error checking that
> > has been disabled / replaced.
> 
> The most recent change to that area of code was the switch from using
> HTML scraping to the BTS's SOAP interface. That was a couple of months
> ago, in 2.10.17.
> 
> [...]
> > dch only appears to work for 'dch -a --closes number' where that number
> > *is* the correct bug number and applies to that package. i.e. all error
> > checking has apparently been replaced by this perl error, which isn't
> > exactly helpful when trying to work out what has gone wrong. ;-)
> 
> At least in my tests, it also works fine when the package in question
> has at least one open bug, which would explain why using "-p wnpp"
> works.
> 
> Could you please try http://alioth.debian.org/~adam-guest/debchange.pl
> and let me know if that resolves the issue for you?

In the estron package:
$ /tmp/debchange/debchange.pl -i --closes 477218
debchange.pl: No bugs found for package estron
$ parsechangelog 
Source: estron
Version: 0.7.0-1
Distribution: unstable
Urgency: low
Maintainer: Neil Williams <[EMAIL PROTECTED]>
Date: Tue, 22 Apr 2008 23:00:30 +0100
Closes: 477218
Changes: 
 estron (0.7.0-1) unstable; urgency=low
 .
   * Initial release. (Closes: #477218: ITP: estron -- data-centric
     development interpreter for GNOME)

$ dch -i --closes 477218
Can't use string ("") as a HASH ref while "strict refs" in use
at /usr/bin/dch line 737.

In apt-cross which exists but currently has no bug reports.
$ /tmp/debchange/debchange.pl -a --closes 477218
debchange.pl: No bugs found for package apt-cross

$ dch -a --closes 477218
Can't use string ("") as a HASH ref while "strict refs" in use
at /usr/bin/dch line 737.

I can also trigger the "WRONG PACKAGE" condition by deliberately
specifying a non-wnpp non-apt-cross bug:

$ /tmp/debchange/debchange.pl -a --closes 477217
debchange.pl: No bugs found for package apt-cross
debchange.pl warning: bug #477217 belongs to package dak (src dak),
  not to apt-cross: disabling closing changelog entry
debchange.pl: Did you see that warning?  Press RETURN to continue...

So, yes, this does resolve the issue. Thanks.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


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

Reply via email to