From 1ef83a03bb3ec55b30b04e07723dca95aaf767e3 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Fri, 22 Feb 2013 18:58:07 -0500 Subject: Skip any packages which have "python_targets_" in IUSE We don't need to check such packages ourselves; emerge --newuse should cover it. --- python-updater | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3-65-gdbad