summaryrefslogtreecommitdiff
path: root/app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch')
-rw-r--r--app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch b/app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch
new file mode 100644
index 00000000..892b378f
--- /dev/null
+++ b/app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch
@@ -0,0 +1,12 @@
+diff -Nur a/bin/euse b/bin/euse
+--- a/bin/euse 2014-02-11 20:53:30.000000000 +0200
++++ b/bin/euse 2014-12-10 07:53:36.876716157 +0200
+@@ -720,7 +720,7 @@
+ # Use a subshell so we don't have to protect the variables in
+ # the current scope
+ (
+- eval $(portageq envvar -v PORTDIR)
++ : ${PORTDIR="$(portageq get_repo_path $(portageq envvar EROOT) gentoo)"}
+ echo "${PORTDIR}"
+ )
+ } # }}}