summaryrefslogtreecommitdiff
path: root/app-portage/gentoolkit/files/0.3.0.9-fix-multiple-portageq-envvar-portdir-is-deprecated-warnings.patch
blob: 892b378fe749aa22b5b02f976266db87f11ffff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
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}"
 	)
 } # }}}