1 |
commit: 660b793b6b704b2e3a9b3bc6e4257fb61e60bd0b |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 8 16:33:08 2015 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 8 16:33:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=660b793b |
7 |
|
8 |
dev-python/six: Drop pkg_pretend check for six directory |
9 |
|
10 |
Calling python_foreach_impl from pkg_pretend currently fails if the relevent |
11 |
versions of dev-lang/python are not installed. pkg_pretend runs before |
12 |
dependencies are installed, so we can't rely on them. |
13 |
|
14 |
Package-Manager: portage-2.2.26_p10 |
15 |
|
16 |
dev-python/six/six-1.10.0.ebuild | 19 +++---------------- |
17 |
1 file changed, 3 insertions(+), 16 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild |
20 |
index 2774a62..b00b76c 100644 |
21 |
--- a/dev-python/six/six-1.10.0.ebuild |
22 |
+++ b/dev-python/six/six-1.10.0.ebuild |
23 |
@@ -26,25 +26,12 @@ PATCHES=( |
24 |
"${FILESDIR}"/1.9.0-mapping.patch |
25 |
) |
26 |
|
27 |
-# Run twice. |
28 |
-# pkg_pretend to catch as early as possible, but be forgiving if |
29 |
-# python impl is not installed allready. |
30 |
-# pkg_setup to catch them all |
31 |
-pkg_pretend() { |
32 |
- six_dir_check() { |
33 |
- type -p "${PYTHON}" > /dev/null || return 0 |
34 |
- local dir="${ROOT%/}$(python_get_sitedir)"/six |
35 |
- [[ -d "${dir}" ]] \ |
36 |
- && die "${PN} doesn't work if ${dir} is a directory #546730" |
37 |
- } |
38 |
- python_foreach_impl six_dir_check |
39 |
-} |
40 |
- |
41 |
pkg_setup() { |
42 |
six_dir_check() { |
43 |
local dir="${ROOT%/}$(python_get_sitedir)"/six |
44 |
- [[ -d "${dir}" ]] \ |
45 |
- && die "${PN} doesn't work if ${dir} is a directory #546730" |
46 |
+ if [[ -d "${dir}" ]]; then |
47 |
+ die "${PN} doesn't work if ${dir} is a directory #546730" |
48 |
+ fi |
49 |
} |
50 |
python_foreach_impl six_dir_check |
51 |
} |