On 2009-06-03 21:22 +0200, Andrei Popescu wrote: > On Wed,03.Jun.09, 10:34:36, Sven Joachim wrote: >> >> > I think the correct way is to *append* to the version, not munge it: >> > >> > 1.2.3lenny1+local1 (I like to use + as separator) >> >> This will not work if the original version is 1.2.3, because >> 1.2.3+local1 > 1.2.3lenny1 (the version for potential security updates). > > '+' is a bad separator, '~' is better: > > $ dpkg --compare-versions 1.2.3~local1 lt 1.2.3lenny1 ; echo $? > 0
Not good either, this version is too low because ~local1 sorts before the empty string: $ dpkg --compare-versions 1.2.3~local1 lt 1.2.3 ; echo $? 0 Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org