On Feb 12, 2006, at 7:01 PM, William Scott wrote:


That's great.  It works, and is so simple it hurts.  Thanks!

On Sun, 12 Feb 2006, Charles Lepple wrote:

On 2/12/06, William Scott <[EMAIL PROTECTED]> wrote:
dpkg --compare-versions 0.1.0-pre-1 gt 0.1.0 && echo "true"

true

How about 0.1.0.0-1 ?

While this works, it does "contaminate" the version number. Another approach is to encode the "pre" in the revision: 0.1.0-0.pre1.1 or some such. Increment the last ".1" for a new revision. This way you can keep the version "pure" while still showing the "pre" status and being able to upgrade to the final version. But that's just a matter of taste.

--
Daniel Johnson
[EMAIL PROTECTED]
PGP public key: http://homepage.mac.com/danielj7/publickey.txt

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to