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.
Read about best_version in the ebuild(5) manual page. After you're done with
that, read about the versionator eclass in the versionator.eclass(5) manual
page (may have to emerge portage-manpages). You'll probably have to use a
combination of both to do what you're trying to achieve.
HTH
- -- printk(KERN_EMERG "PCI: Tell willy he's wrong "); linux-2.6.6/arch/parisc/kernel/pci.c
Aaron Walker <[EMAIL PROTECTED]>
[ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCJuZhC3poscuANHARAno+AJ0S4wl1FnzHKuKSeNj92CBKMsOpogCgmhrR 9lSrUePKgaiEePdqlNVZpaM= =bznu -----END PGP SIGNATURE----- -- [email protected] mailing list
-- [email protected] mailing list
