Re: uscan upstream version: padding zero to the left with elegance?

2021-09-20 Thread Markus Frosch
On Mon, 2021-09-20 at 11:18 +0200, Julien Puydt wrote: > Oh, you mean 2021.9.9 won't be seen as the last of the century? By default, version comparison in Debian and other packaging systems are not alphanumeric, but each part of the version. Debian has some features to amend versions, like + and

Re: uscan upstream version: padding zero to the left with elegance?

2021-09-20 Thread Julien Puydt
Le lundi 20 septembre 2021 à 11:11 +0200, Markus Frosch a écrit : > > I would keep using the versioning style of upstream. > > dpkg and uscan should be pretty much fine with this: > > $ dpkg --compare-versions 2021.8.23 eq 2021.08.23; echo $? > 0 Oh, you mean 2021.9.9 won't be seen as the last

Re: uscan upstream version: padding zero to the left with elegance?

2021-09-20 Thread Markus Frosch
Hi Julien, On Mon, 2021-09-20 at 11:00 +0200, Julien Puydt wrote: > I'm having an issue with an upstream where the latest git tag is > v2021.8.23 ; I would have liked them to (also) tag v2021.08.23, but > that won't happen. I would keep using the versioning style of upstream. dpkg and uscan

uscan upstream version: padding zero to the left with elegance?

2021-09-20 Thread Julien Puydt
Hi, I'm having an issue with an upstream where the latest git tag is v2021.8.23 ; I would have liked them to (also) tag v2021.08.23, but that won't happen. So I need some uversionmangle magic. I know how to get the parts $1=2021, $2=8 and $3=23, but I don't know how to say $2 ($3 will need a