On Fri, 8 Apr 2022 02:10:28 +0200 Guilhem Moulin <[email protected]>
wrote:
> Package: git-buildpackage
> Version: 0.9.25
> Severity: wishlist
> 
> Dear Maintainer,
> 
> `gpg import-orig --upstream-vcs-tag=%(version)s` is great, however
the
> substitution doesn't work well will repack suffixes such as +dfsg or
> +ds.  Perhaps ‘%(version)s’ shouldn't unconditionally strip repack
> suffixes, but unfortunately ‘%(version%+ds%)s’ doesn't work either
> 
>       >>> DebianGitRepository.version_to_tag(r'%(version%+ds%)s',
"1.2.3+ds")
>       […]
>     gbp.errors.GbpError: Failed to format %(version%+ds%)s: Missing
value 'version%+ds%' in {'version': '1.2.3+ds', 'hversion': '1-2-3+ds'}
> 
> AFAIK one can't use d/gbp.conf, instead one needs to manually run
`gpg
> import-orig --upstream-vcs-tag=1.2.3 --uscan` which requires to find
out
> the most recent upstream version number beforehand.  It would be nice
if
> d/gbp.conf had a way to specify a substitution string or template
that
> works with repack suffixes.
> 
> Thanks for maintaining gbp!
> -- 
> Guilhem.

Any update on this? It makes using gbp when repacking with +ds or +dfsg
impossible, as you get a Lintian error when repacking without appending
a suffix.

-- 
Kind regards,
Luca Boccassi

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

Reply via email to