Gentoo Archives: gentoo-perl

From: Michael Cummings <mcummings@g.o>
To: gentoo-perl@l.g.o
Subject: Re: [gentoo-perl] [Patch] up2date-ng and CPAN package list
Date: Wed, 07 Feb 2007 20:29:05
In Reply to: Re: [gentoo-perl] [Patch] up2date-ng and CPAN package list by Daniel Westermann-Clark
Hash: SHA1

Daniel Westermann-Clark wrote:
> The comparison in the patch is too simplistic ... to catch this case I > think would need to generate a list of version numbers > from CPAN with zeroes in place of the decimal points (instead of > having the decimal points stripped). > > /me goes to check if the same process would work for version numbers > on the Perl ebuilds >
if we're going to go hog wild on this....split on the decimals, pad 0's at the end for equal lengths, then compare...i think....seem to remember using that technique once successfully, but then i dropped the code for sanity reasons (unrelated to the padding for equal lengths bit) - -- - -----o()o---------------------------------------------- Michael Cummings | #gentoo-dev, #gentoo-perl Gentoo Perl Dev | on Gentoo/SPARC Gentoo/AMD64 GPG: 0543 6FA3 5F82 3A76 3BF7 8323 AB5C ED4E 9E7F 4E2E - -----o()o---------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFyjaBq1ztTp5/Ti4RAlLNAJ9QLJPbeS+T15xZEOJ5Ywoh2pi9+QCbBGsm pbAfzJldprsKc5R/3oqdlA0= =sRTN -----END PGP SIGNATURE----- -- gentoo-perl@g.o mailing list