Hi Andrius, Le 29/09/2020 à 07:57, Andrius Merkys a écrit : > Hi Pierre, > > On 2020-09-28 22:47, Pierre Gruet wrote: >> Thanks for your advice! Nevertheless, this seems to rank before the >> current version number, as >> >> echo "2.6.3+dfsg-2,2.6.3+dfsg1-1" | tr ',' '\n' | sort --version-sort >> >> outputs >> >> 2.6.3+dfsg1-1 >> 2.6.3+dfsg-2 > > Debian (dpkg) uses slightly different mechanism for version comparison > than 'sort': > > dpkg --compare-versions 2.6.3+dfsg-2 '<<' 2.6.3+dfsg1-1 && echo LESS > > outputs 'LESS'. >
Thank you for pointing this out! I should have referred to the Developer's reference as i have just seen dpkg --compare-versions is presented there. > > Thus AFAIK it is usual for '+dfsg1' to follow '+dfsg'. > Very well then :-) > > Best, > Andrius > Best regards, Pierre