From: | Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o> | ||
---|---|---|---|
To: | Gentoo Development <gentoo-dev@l.g.o> | ||
Subject: | Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-libs/libproxy: ChangeLog libproxy-0.4.6.ebuild | ||
Date: | Fri, 01 Oct 2010 17:05:06 | ||
Message-Id: | 201010011905.51279.Arfrever@gentoo.org | ||
In Reply to: | [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-libs/libproxy: ChangeLog libproxy-0.4.6.ebuild by Peter Volkov |
1 | 2010-10-01 15:15:56 Peter Volkov napisał(a): |
2 | > В Срд, 29/09/2010 в 20:43 +0000, Pacho Ramos (pacho) пишет: |
3 | > > pkg_setup() { |
4 | > > if use python; then |
5 | > > python_set_active_version 2 |
6 | > > fi |
7 | > |
8 | > It's much shorter and clearer to write |
9 | > |
10 | > use python && python_set_active_version 2 |
11 | |
12 | Calling python_pkg_setup() is required in EAPI >=4, so I suggest: |
13 | |
14 | pkg_setup() { |
15 | if use python; then |
16 | python_set_active_version 2 |
17 | python_pkg_setup |
18 | fi |
19 | } |
20 | |
21 | -- |
22 | Arfrever Frehtes Taifersar Arahesis |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |