From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id AE4D1198005 for ; Sat, 23 Feb 2013 00:14:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1319521C003; Sat, 23 Feb 2013 00:14:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 34FF221C003 for ; Sat, 23 Feb 2013 00:14:24 +0000 (UTC) Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 2168C33E155 for ; Sat, 23 Feb 2013 00:14:23 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id 10so1420782ied.16 for ; Fri, 22 Feb 2013 16:14:02 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.6.202 with SMTP id d10mr135566iga.28.1361578442383; Fri, 22 Feb 2013 16:14:02 -0800 (PST) Received: by 10.64.102.66 with HTTP; Fri, 22 Feb 2013 16:14:02 -0800 (PST) Date: Fri, 22 Feb 2013 19:14:02 -0500 Message-ID: Subject: [gentoo-python] [PATCH] python-updater: Skip any packages which have "python_targets_" in IUSE From: Mike Gilbert To: gentoo-python , Gentoo Python Project Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 28aba62b-b4fa-4748-a3ff-51b3953dd343 X-Archives-Hash: 1b0f6657f439eced4fbff42519b8b7a5 We don't need to check such packages ourselves; emerge --newuse should cover it. This should resolve bug 441708. --- 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 -- 1.8.1.4