jasonc has asked for the wisdom of the Perl Monks concerning the following question:
Hello everybody :)
I've been trying to write some scripts to compare versions of packages, mainly RPM package names. I wrote something that can compare two versions together, but it's quite sloppy and doesn't work if there are letters involved in a package name. I was wondering if there is anybody else out there that has done something similar?
I'd be looking to compare something like mozilla-1.4.2-3.0.2 and mozilla-1.4-3.0.18 or something like mozilla-1.4.2r-3.0.2 and mozilla-1.4g-3.0.18. I'm sure you get the idea. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Version checking
by tachyon (Chancellor) on Sep 30, 2004 at 04:32 UTC | |
|
Re: Version checking
by dragonchild (Archbishop) on Sep 29, 2004 at 19:53 UTC | |
by jasonc (Initiate) on Sep 30, 2004 at 03:48 UTC | |
by dragonchild (Archbishop) on Sep 30, 2004 at 12:47 UTC | |
|
Re: Version checking
by Anonymous Monk on Sep 30, 2004 at 06:07 UTC |