1 |
We don't need to check such packages ourselves; emerge --newuse should |
2 |
cover it. |
3 |
|
4 |
This should resolve bug 441708. |
5 |
--- |
6 |
python-updater | 11 +++++++++++ |
7 |
1 file changed, 11 insertions(+) |
8 |
|
9 |
diff --git a/python-updater b/python-updater |
10 |
index fc3294f..4fd4faa 100755 |
11 |
--- a/python-updater |
12 |
+++ b/python-updater |
13 |
@@ -701,6 +701,10 @@ for contents_file in $(find ${PKG_DBDIR}/ -name |
14 |
CONTENTS | sort); do |
15 |
CATPKGVER="=${CATEGORY}/${PF}" |
16 |
fi |
17 |
|
18 |
+ IUSE= |
19 |
+ iuse_file=${contents_file%CONTENTS}IUSE |
20 |
+ [[ -f ${iuse_file} ]] && IUSE=$(<"${iuse_file}") |
21 |
+ |
22 |
veinfo 2 "Checking ${CATEGORY}/${PF}${SLOT:+:}${SLOT}" |
23 |
|
24 |
# Exclude packages, which are exceptions, like Portage and Python itself. |
25 |
@@ -719,6 +723,13 @@ for contents_file in $(find ${PKG_DBDIR}/ -name |
26 |
CONTENTS | sort); do |
27 |
continue |
28 |
fi |
29 |
|
30 |
+ if [[ ${IUSE} =~ python_targets_ ]]; then |
31 |
+ eindent |
32 |
+ veinfo 2 "Skipping ${CATPKGVER}, reason: python_targets_ in IUSE" |
33 |
+ eoutdent |
34 |
+ continue |
35 |
+ fi |
36 |
+ |
37 |
if [[ -n "${PYTHON_MULTIPLE_ABIS}" && "${EAPI}" =~ ^4-python$ ]]; then |
38 |
# Potentially update USE flags in IUSE in EAPI >= 4-python. |
39 |
if [[ "${PRETEND}" -eq 0 && -f "${contents_file%CONTENTS}IUSE" && |
40 |
-f "${contents_file%CONTENTS}USE" && -f |
41 |
"${contents_file%CONTENTS}repository" ]]; then |
42 |
-- |
43 |
1.8.1.4 |