----- Original Message -----
From: "Bob Proulx" <[EMAIL PROTECTED]>


> > You seem to believe that RPMs and other package tools require versions
of
> > the form x.y.z.  Although I know nothing about RPMs, I know Debian finds
> > 2.01 as a perfectly acceptable version number.
>
> Yes a perfectly acceptable version number.  But which version is the
> later, 2.01 or 2.1?

The point is if you go for 2.01, you never get 2.1, you get 2.10 instead.

And so I don't have to spawn a new thread, you have to be careful with
underscores too. For example if you do:

$VERSION = 2.0_1;

That's fine. But if you do:

$VERSION = 2.1_0;

Perl will truncate that to 2.1, which may or may not be what you want. The
normal way to deal with the truncation issue is to use quotes (which perl
will auto-numify when needed), as in $VERSION = '2.10';

Finally, if you do:

$VERSION = '2.1_0';

Then CPAN treats it as a beta, and won't install it - it'll do that with any
version with an underscore in the distribution name (note that this can be
different than the actual $VERSION - the underscore rule is just for the
tar.gz file name). :-)

RPMs are a separate issue, since you have to update the .spec file manually
anyway, so feel free to use whatever versioning scheme you like.

Lots of fun, but the answer is to just keep it simple.

Matt.


_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to