-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeremy Hanmer wrote: > > On Mar 3, 2005, at 2:26 AM, Aaron Walker wrote: > >> >> has_version only returns 0 or 1 depending whether the package is >> installed or >> not, so it's useless in this case. best_version would be a better >> alternative, >> however that alone won't solve the problem. > > > That's all that's really needed since all you'd care about in this > instance is the existance of one of 2 or 3 major versions. Just look > for >=sys-libs-4.0 then 3.0 and so-on, compiling for the first one you > find.
That would be the incorrect way of going about it. As I said in my previous post, use versionator.eclass. One call to best_version and one call to get_major_version is all that's needed. - -- Love America -- or give it back. Aaron Walker <[EMAIL PROTECTED]> [ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCJ678C3poscuANHARAn1hAKDGWTixj9QVHjCMLgzLu75yLmywbgCfT1+h YlWOglosHIp5XrbfHE/u4XA= =VZ1q -----END PGP SIGNATURE----- -- [email protected] mailing list
