diff options
-rwxr-xr-x | python-updater | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python-updater b/python-updater index fc3294f..4fd4faa 100755 --- a/python-updater +++ b/python-updater @@ -701,6 +701,10 @@ for contents_file in $(find ${PKG_DBDIR}/ -name CONTENTS | sort); do CATPKGVER="=${CATEGORY}/${PF}" fi + IUSE= + iuse_file=${contents_file%CONTENTS}IUSE + [[ -f ${iuse_file} ]] && IUSE=$(<"${iuse_file}") + veinfo 2 "Checking ${CATEGORY}/${PF}${SLOT:+:}${SLOT}" # Exclude packages, which are exceptions, like Portage and Python itself. @@ -719,6 +723,13 @@ for contents_file in $(find ${PKG_DBDIR}/ -name CONTENTS | sort); do continue fi + if [[ ${IUSE} =~ python_targets_ ]]; then + eindent + veinfo 2 "Skipping ${CATPKGVER}, reason: python_targets_ in IUSE" + eoutdent + continue + fi + if [[ -n "${PYTHON_MULTIPLE_ABIS}" && "${EAPI}" =~ ^4-python$ ]]; then # Potentially update USE flags in IUSE in EAPI >= 4-python. if [[ "${PRETEND}" -eq 0 && -f "${contents_file%CONTENTS}IUSE" && -f "${contents_file%CONTENTS}USE" && -f "${contents_file%CONTENTS}repository" ]]; then |