public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-python <gentoo-python@lists.gentoo.org>,
	 Gentoo Python Project <python@gentoo.org>
Subject: [gentoo-python] [PATCH] python-updater: Skip any packages which have "python_targets_" in IUSE
Date: Fri, 22 Feb 2013 19:14:02 -0500	[thread overview]
Message-ID: <CAJ0EP43N1EeaF4uS08-eNspG8vuw=zGg8OKPgGEkkoFTOTQwxA@mail.gmail.com> (raw)

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


                 reply	other threads:[~2013-02-23  0:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ0EP43N1EeaF4uS08-eNspG8vuw=zGg8OKPgGEkkoFTOTQwxA@mail.gmail.com' \
    --to=floppym@gentoo.org \
    --cc=gentoo-python@lists.gentoo.org \
    --cc=python@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox