public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] [PATCH] python-updater: Skip any packages which have "python_targets_" in IUSE
@ 2013-02-23  0:14 Mike Gilbert
  0 siblings, 0 replies; only message in thread
From: Mike Gilbert @ 2013-02-23  0:14 UTC (permalink / raw
  To: gentoo-python, Gentoo Python Project

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-23  0:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-23  0:14 [gentoo-python] [PATCH] python-updater: Skip any packages which have "python_targets_" in IUSE Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox