1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Jeremy Hanmer wrote: |
5 |
> |
6 |
> On Mar 3, 2005, at 2:26 AM, Aaron Walker wrote: |
7 |
> |
8 |
>> |
9 |
>> has_version only returns 0 or 1 depending whether the package is |
10 |
>> installed or |
11 |
>> not, so it's useless in this case. best_version would be a better |
12 |
>> alternative, |
13 |
>> however that alone won't solve the problem. |
14 |
> |
15 |
> |
16 |
> That's all that's really needed since all you'd care about in this |
17 |
> instance is the existance of one of 2 or 3 major versions. Just look |
18 |
> for >=sys-libs-4.0 then 3.0 and so-on, compiling for the first one you |
19 |
> find. |
20 |
|
21 |
That would be the incorrect way of going about it. As I said in my previous |
22 |
post, use versionator.eclass. One call to best_version and one call to |
23 |
get_major_version is all that's needed. |
24 |
|
25 |
- -- |
26 |
Love America -- or give it back. |
27 |
|
28 |
Aaron Walker <ka0ttic@g.o> |
29 |
[ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ] |
30 |
-----BEGIN PGP SIGNATURE----- |
31 |
Version: GnuPG v1.4.0 (GNU/Linux) |
32 |
|
33 |
iD8DBQFCJ678C3poscuANHARAn1hAKDGWTixj9QVHjCMLgzLu75yLmywbgCfT1+h |
34 |
YlWOglosHIp5XrbfHE/u4XA= |
35 |
=VZ1q |
36 |
-----END PGP SIGNATURE----- |
37 |
-- |
38 |
gentoo-dev@g.o mailing list |