On Fri, Jun 20, 2008 at 06:52:34AM +0100, Adam D. Barratt wrote:
> Hi,
> 
> On Fri, 2008-06-20 at 04:21 +0000, Joe Nahmias wrote:
> > I'm seeing the same problem -- dch gives an NMU version number for a
> > package I maintain.  Using v2.10.30, here's the info:
> > 
> > $ echo $DEBEMAIL; egrep ^Maintainer debian/control
> > [EMAIL PROTECTED]
> > Maintainer: Joe Nahmias <[EMAIL PROTECTED]>
> [...]
> > Yet, when I run dch -i, expecting to get version 0.0.6-4, instead I get:
> > 
> > libkarma (0.0.6-3.2) UNRELEASED; urgency=low
> > 
> >   *
> > 
> >  -- Joe Nahmias <[EMAIL PROTECTED]>  Fri, 20 Jun 2008 00:16:44 -0400
> 
> I've uploaded a copy of dch with some debug code to better illustrate
> what dch thinks it's comparing to
> http://alioth.debian.org/~adam-guest/debchange.pl - could you please try
> running that against the package above and send me the results?

Here you go, my guess is that there's a bug in the incrementing logic
when going from an NMU-style x.y to x+1; though if that's the case, I
don't know why you're not seeing this behavior.

$ wget http://alioth.debian.org/~adam-guest/debchange.pl
--2008-06-20 18:41:24-- http://alioth.debian.org/~adam-guest/debchange.pl
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8118... connected.
Proxy request sent, awaiting response... 200 OK
Length: 47374 (46K) [text/x-perl]
Saving to: `debchange.pl'

100%[======================================>] 47,374       110K/s   in 0.4s

2008-06-20 18:41:24 (110 KB/s) - `debchange.pl' saved [47374/47374]

$ chmod +x ./debchange.pl
$ head -n 1 debian/changelog
libkarma (0.0.6-3.1) unstable; urgency=low
$ ./debchange.pl -i "Just testing"
packager:   4a 6f 65 20 4e 61 68 6d 69 61 73 20 3c 6a 65 6c 6c 6f 40 64
65 62 69 61 6e 2e 6f 72 67 3e  (Joe Nahmias <[EMAIL PROTECTED]>)
maintainer: 4a 6f 65 20 4e 61 68 6d 69 61 73 20 3c 6a 65 6c 6c 6f 40 64
65 62 69 61 6e 2e 6f 72 67 3e  (Joe Nahmias <[EMAIL PROTECTED]>)
$ head -n 5 debian/changelog
libkarma (0.0.6-3.2) UNRELEASED; urgency=low

  * Just testing

 -- Joe Nahmias <[EMAIL PROTECTED]>  Fri, 20 Jun 2008 18:42:11 -0400
$




-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to