diff options
author | 2013-02-22 18:58:07 -0500 | |
---|---|---|
committer | 2013-02-22 18:58:07 -0500 | |
commit | 1ef83a03bb3ec55b30b04e07723dca95aaf767e3 (patch) | |
tree | aa4dce4555e3f8d66d9857c26ca5fd40cf1f6448 | |
parent | Fix handling of sed. (diff) | |
download | python-updater-1ef83a03bb3ec55b30b04e07723dca95aaf767e3.tar.gz python-updater-1ef83a03bb3ec55b30b04e07723dca95aaf767e3.tar.bz2 python-updater-1ef83a03bb3ec55b30b04e07723dca95aaf767e3.zip |
Skip any packages which have "python_targets_" in IUSE
We don't need to check such packages ourselves; emerge --newuse should
cover it.
-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 |