On Fri, 08 Dec 2023 11:16:12 +0000, Dan Lewis wrote:

> dh-make-perl correctly builds the .deb file with the supplied revision
> and creates libjson-diffable-perl_0.000002-100_all.deb
> 
> However, it then supplies 'libjson-diffable-perl_0.000002-1_all.deb' to
> dpkg when attempting to install the package. Note the use of a hardcoded
> '-1' revision. This causes the operation to fail with:

> The filename is generated with:
> 
> $debname = sprintf( "%s_%s-1_%s.deb", $self->pkgname, $self->version,
> $archspec );
> 
> Which I believe should instead be:
> 
> $debname = sprintf( "%s_%s_%s.deb", $self->pkgname, $self->pkgversion,
> $archspec );
> 
> $self->pkgversion contains the revision supplied with --revision.

Nice catch, thank you.

And thanks for providing a patch, which I've now applied in git and
which should be included in the next upload unless someone finds any
issues with it which I missed.
 

Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   

Attachment: signature.asc
Description: Digital Signature

Reply via email to