1 |
On Thursday 30 June 2005 23:36, Aron Griffis wrote: |
2 |
> Dan Armak wrote: [Thu Jun 30 2005, 04:06:03PM EDT] |
3 |
> |
4 |
> > Because the function takes a parameter - the minimal version |
5 |
> > required from which to start the list in the ||. |
6 |
> |
7 |
> Makes sense. |
8 |
> |
9 |
> > Any everyone who thinks functions inside $DEPEND are iffy should |
10 |
> > look at deprange() and deprange-dual()... /me hides |
11 |
> |
12 |
> They're definitely iffy. Try this at a bash prompt: |
13 |
> |
14 |
> DEPEND="$(exit 1)" |
15 |
> |
16 |
> See the problem? It didn't exit. That's what will happen if |
17 |
> a function in DEPEND fails: nothing. Except that yours will currently |
18 |
> stick this in DEPEND: |
19 |
> |
20 |
> !!! error: qt_min_version called with invalid parameter: \"$1\", |
21 |
> please report bug |
22 |
> |
23 |
Instead of 'exit 1', qt_min_version should use die. I use that in deprange and |
24 |
it does work inside $DEPEND. |
25 |
|
26 |
-- |
27 |
Dan Armak |
28 |
Gentoo Linux developer (KDE) |
29 |
Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key |
30 |
Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD 0069 508D 9143 8D5F 8951 |