aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2015-10-31 15:32:18 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2015-11-05 17:37:26 +0000
commitea0ee08da746e4d924031bafca3e96e60b7599bd (patch)
tree5997f4dc2998bcc54d476b651a50de46272aa54a /paludis/repositories/e/ebuild
parentdfc9acb9553cb661eb69c4fd7127e2d54f5c6104 (diff)
downloadpaludis-ea0ee08da746e4d924031bafca3e96e60b7599bd.tar.gz
paludis-ea0ee08da746e4d924031bafca3e96e60b7599bd.tar.xz
EAPI 6 sets failglob in global scope
Diffstat (limited to 'paludis/repositories/e/ebuild')
-rwxr-xr-xpaludis/repositories/e/ebuild/ebuild.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/ebuild.bash b/paludis/repositories/e/ebuild/ebuild.bash
index b856badcb..2aaded1eb 100755
--- a/paludis/repositories/e/ebuild/ebuild.bash
+++ b/paludis/repositories/e/ebuild/ebuild.bash
@@ -392,12 +392,17 @@ ebuild_load_ebuild()
eval paludis_saved_${paludis_v}='${!paludis_v}'
done
+ local paludis_shopts=$(shopt -p)
+ [[ -n ${PALUDIS_SHELL_OPTIONS_GLOBAL} ]] && shopt -s ${PALUDIS_SHELL_OPTIONS_GLOBAL}
+
if [[ ! -f ${1} ]]; then
[[ -r ${1} ]] || die "Ebuild '${1}' cannot be read"
die "Ebuild '${1}' is not a file"
fi
source ${1} || die "Error sourcing ebuild '${1}'"
+ eval "${paludis_shopts}"
+
# we may or may not use this later
PALUDIS_EBUILD_RDEPEND_WAS_SET=
PALUDIS_EBUILD_DEPEND="${DEPEND}"