On Tue, Oct 10, 2000 at 03:01:35PM -0700, Yves Arrouye wrote:
> Hi,
>
> I'm sure this is an FAQ. But can I use a version number like:
>
>
> 1.6.20001010-1
>
> and then later on
>
> 1.7-1
>
> with success?
Yes. Just try:
bash$ dpkg --compare-versions 1.6.20001010-1 lt 1.7-1; echo $?
0
bash$
> I want to package something based on date (development
> snapshot) but w/o epochs (as I'm not sure where to start the epoch and how
> to drop it later). I tried these examples with dpkg --compare-versions and
> they were fine, but I also found out that I could have
>
> 1.6-20001010-1 < 1.6-20001010-2
That's correct: upstream version = 1.6-20001010 in both cases, Debian
revision = 1, 2 in the first, second case respectively.
> and that confused me, because I though that shouldn't work w/o epochs?! If
> that works, why are the KDE packages using an epoch (4) instead of just
> 2.0-DATE-DEBIANRELEASE? I'd rather use VERSION-DATE-DEBIANRELEASE if it will
> work everywhere.
Epochs are just for when things go wrong. Read the packaging manual,
section 5, carefully.
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. [EMAIL PROTECTED]
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]