summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2019-04-22 14:36:15 -0700
committerZac Medico <zmedico@gentoo.org>2019-04-22 14:36:21 -0700
commitcd42be9b33ca5b54a6429305acea8000bb268483 (patch)
treeef4efb5193f8a9326581bddb2d9c22cde170a238 /sys-apps
parentapp-text/calibre: version bump to 3.41.3 (diff)
downloadgentoo-cd42be9b33ca5b54a6429305acea8000bb268483.tar.gz
gentoo-cd42be9b33ca5b54a6429305acea8000bb268483.tar.bz2
gentoo-cd42be9b33ca5b54a6429305acea8000bb268483.zip
sys-apps/portage: validate PYTHON_SITEDIR (bug 683932)
Bug: https://bugs.gentoo.org/683932 Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/portage/portage-2.3.64.ebuild1
-rw-r--r--sys-apps/portage/portage-9999.ebuild1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys-apps/portage/portage-2.3.64.ebuild b/sys-apps/portage/portage-2.3.64.ebuild
index f3f538b66de6..b3a016883b33 100644
--- a/sys-apps/portage/portage-2.3.64.ebuild
+++ b/sys-apps/portage/portage-2.3.64.ebuild
@@ -239,6 +239,7 @@ python_install_all() {
pkg_preinst() {
python_setup
python_export PYTHON_SITEDIR
+ [[ -d ${D%/}${PYTHON_SITEDIR} ]] || die "${D%/}${PYTHON_SITEDIR}: No such directory"
env -u DISTDIR \
-u PORTAGE_OVERRIDE_EPREFIX \
-u PORTAGE_REPOSITORIES \
diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild
index d91ed6170bb7..aa44b4b671c1 100644
--- a/sys-apps/portage/portage-9999.ebuild
+++ b/sys-apps/portage/portage-9999.ebuild
@@ -249,6 +249,7 @@ python_install_all() {
pkg_preinst() {
python_setup
python_export PYTHON_SITEDIR
+ [[ -d ${D%/}${PYTHON_SITEDIR} ]] || die "${D%/}${PYTHON_SITEDIR}: No such directory"
env -u DISTDIR \
-u PORTAGE_OVERRIDE_EPREFIX \
-u PORTAGE_REPOSITORIES \