summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-03-12 22:42:01 +0100
committerMike Gilbert <floppym@gentoo.org>2014-03-12 17:58:33 -0400
commit11625489469dd9675565e6eb7d0546f31c083c57 (patch)
tree9ce504a19bbbc5b5ce1483e4df7f057b33b71037
parentMakefile updates. (diff)
downloadpython-updater-11625489469dd9675565e6eb7d0546f31c083c57.tar.gz
python-updater-11625489469dd9675565e6eb7d0546f31c083c57.tar.bz2
python-updater-11625489469dd9675565e6eb7d0546f31c083c57.zip
Add a check for dev-python/python-exec rev-deps.
-rw-r--r--man.include5
-rwxr-xr-xpython-updater23
2 files changed, 28 insertions, 0 deletions
diff --git a/man.include b/man.include
index d07ffa3..4ae051e 100644
--- a/man.include
+++ b/man.include
@@ -28,6 +28,11 @@ need_rebuild
python_need_rebuild function from python.eclass.
Enabled by default.
+python-exec
+ This check looks for packages that depend on dev-python/python-exec
+ rather than new dev-lang/python-exec.
+ Enabled by default.
+
Checks can be enabled/disabled on command line with -e/--enable and -d/--disable
switches.
diff --git a/python-updater b/python-updater
index 6597ce2..2d44706 100755
--- a/python-updater
+++ b/python-updater
@@ -101,6 +101,7 @@ done)
* manual (Enabled by default)
* need_rebuild (Enabled by default)
* pylibdir (Enabled by default)
+ * python-exec (Enabled by default)
* PYTHON_ABIS (Enabled by default)
* shared_linking (Enabled by default)
* static_linking (Enabled by default)
@@ -427,6 +428,7 @@ while (($#)); do
CHECK_NEED_REBUILD="1"
CHECK_PYLIBDIR="1"
CHECK_PYTHON_ABIS="1"
+ CHECK_PYTHON_EXEC="1"
CHECK_SHARED_LINKING="1"
CHECK_STATIC_LINKING="1"
;;
@@ -435,6 +437,7 @@ while (($#)); do
CHECK_NEED_REBUILD="0"
CHECK_PYLIBDIR="0"
CHECK_PYTHON_ABIS="0"
+ CHECK_PYTHON_EXEC="0"
CHECK_SHARED_LINKING="0"
CHECK_STATIC_LINKING="0"
;;
@@ -462,6 +465,12 @@ while (($#)); do
-dPYTHON_ABIS|--disable-PYTHON_ABIS)
CHECK_PYTHON_ABIS="0"
;;
+ -epython-exec|--enable-python-exec)
+ CHECK_PYTHON_EXEC="1"
+ ;;
+ -dpython-exec|--disable-python-exec)
+ CHECK_PYTHON_EXEC="0"
+ ;;
-eshared_linking|--enable-shared_linking)
CHECK_SHARED_LINKING="1"
;;
@@ -723,6 +732,20 @@ for contents_file in $(find ${PKG_DBDIR}/ -name CONTENTS | sort); do
continue
fi
+ if [[ "${CHECK_PYTHON_EXEC}" -ne 0 ]]; then
+ RDEPEND="$(<"${contents_file%CONTENTS}RDEPEND")"
+
+ if [[ ${RDEPEND} == *dev-python/python-exec* ]]; then
+ PKGS_TO_REMERGE+=" ${CATPKGVER}"
+ eindent
+ einfo "Adding to list: ${CATPKGVER}"
+ eindent
+ veinfo 1 "check: python-exec [ Package depending on dev-python/python-exec ]"
+ eoutdent && eoutdent
+ fi
+ continue
+ fi
+
if [[ ${IUSE} =~ python_targets_ ]]; then
eindent
veinfo 2 "Skipping ${CATPKGVER}, reason: python_targets_ in IUSE"