Hi.

This also happened to me while making a git repo for smartlist,
because smartlist_3.10.7-5.dsc is like this:

[...]
Source: smartlist
Version: 3.10.7-5
[...]
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1


I'd like to mention that this does not happen when using
git-buildpackage from bookworm, so it might be worth to check which of
the commits between 0.9.30 (bookworm) and 0.9.36 (reported by Javier)
is the one where things started to go wrong.

Maybe there is a more simple fix than the one proposed here, for
example, it could be that considering only the very first line
matching "^Version:" would also fix this.


Regarding tests: I would probably need some help to extend tests/12_test_deb.py
but I can explain in simple words what we need:

I'm attaching compartment_1.1.0-1.dsc, one of the files which
currently make gbp import-dsc to fail. When this file is read,
version should be 1.1.0-1 and not 2.6.3ia. I guess this
would be checked in this way:

self.assertEqual(dsc.version, '1.1.0-1')

Javier or Guido: Based on the above, could you fill the gaps?

Thanks.
-----BEGIN PGP SIGNED MESSAGE-----

Format: 1.0
Source: compartment
Version: 1.1.0-1
Binary: compartment
Maintainer: Javier Fernandez-Sanguino Pen~a <[email protected]>
Architecture: any
Standards-Version: 3.6.1
Build-Depends: debhelper
Files: 
 f4338fd32acb4afd46adb71254c0c50b 17597 compartment_1.1.0.orig.tar.gz
 f773d303e0697ac8d09083526742fc18 3613 compartment_1.1.0-1.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBP+mK1PtEPvakNq0lAQEOhgQAt3L5yzH87XmFv/Y0+SAv6D8JUZfYNiKo
Ji70tojAY7is9noJL1RAq330VffU2euzWq5BcxX4EUnWWkuiq1ICTMmZYRrWYqvF
hypsWFYYtbl+hkp6LesBJ2Q4ngGuf03bxwQseybkNWOq2Ckm9okeuuQXE2I8kfK6
EHQ3451uFfY=
=ks24
-----END PGP SIGNATURE-----

Reply via email to