Re: PRE Version numbers
On Tue, Jan 16, 2001 at 12:59:12AM -0500 , Joseph Carter wrote:
> On Mon, Jan 15, 2001 at 02:51:27PM +0100, Ingo Saitz wrote:
> > But does katie (the new dinstall) check the versions of the
> > tarball, too or only the version of the debian packgae that's in
> > the .dsc file? If not, you could use the following versions:
> >
> > upstream-version debian-revision version
> > 1.4-0pre1 - 1 = 1.4-0pre1-1
> > 1.4-0pre1 - 2 = 1.4-0pre1-2
> > 1.4-0pre2 - 1 = 1.4-0pre2-1
> > 1.4 - 1 = 1.4-1
> >
> > According to hte packaging manual ch. 5, "dpkg will break the
> > upstream-version and debian-revision apart at the last hyphen in
> > the string."
>
> $ dpkg --compare-versions 1.4-0pre2-1 lt 1.4-1 && echo true || echo false
but if you use pre2.(dot not -)1 it will work
cech@merlin:% dpkg --compare-versions 1.4-0pre2.1 lt 1.4-1 && echo true || echo false
true
Petr Cech
--
Debian GNU/Linux maintainer - www.debian.{org,cz}
cech@atrey.karlin.mff.cuni.cz
<rmtZzz> The guy may know awk like the back of a dingo, too.
Reply to: