summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2018-06-25 23:28:02 -0400
committerMike Frysinger <vapier@gentoo.org>2018-06-25 23:29:37 -0400
commit886cc632a0a5a0c4df3b7793b497ddbe8925e357 (patch)
tree86275cf4d5ad4e2593a41970b678bfedfbb46a0c
parentsys-apps/dtc: version bump (diff)
downloadgentoo-886cc632a0a5a0c4df3b7793b497ddbe8925e357.tar.gz
gentoo-886cc632a0a5a0c4df3b7793b497ddbe8925e357.tar.bz2
gentoo-886cc632a0a5a0c4df3b7793b497ddbe8925e357.zip
unpacker.eclass: disable path expansion while parsing SRC_URI #654960
Closes: https://bugs.gentoo.org/654960
-rw-r--r--eclass/unpacker.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 6e996120646..c2c69dbc7d6 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -433,7 +433,12 @@ unpacker_src_unpack() {
unpacker_src_uri_depends() {
local uri deps d
- [[ $# -eq 0 ]] && set -- ${SRC_URI}
+ if [[ $# -eq 0 ]] ; then
+ # Disable path expansion for USE conditionals. #654960
+ set -f
+ set -- ${SRC_URI}
+ set +f
+ fi
for uri in "$@" ; do
case ${uri} in