aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-11-14 22:45:45 +0100
committerMichał Górny <mgorny@gentoo.org>2015-11-14 23:13:03 +0100
commita144739b575c9be9c57afbe3d3ae9a52e9872b57 (patch)
tree3f85d8c992e45ed653001b3c38439a2c0b53b823
parenteapply: Ensure that files are sorted lexically (diff)
downloadportage-a144739b575c9be9c57afbe3d3ae9a52e9872b57.tar.gz
portage-a144739b575c9be9c57afbe3d3ae9a52e9872b57.tar.bz2
portage-a144739b575c9be9c57afbe3d3ae9a52e9872b57.zip
__eapi6_src_prepare: Silence 'declare -p PATCHES' errors
Silence the error message when PATCHES array is not declared. Reviewed-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--bin/phase-helpers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 3e619dc47..6c45c2527 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -805,7 +805,7 @@ __eapi4_src_install() {
}
__eapi6_src_prepare() {
- if [[ $(declare -p PATCHES) == "declare -a"* ]]; then
+ if [[ $(declare -p PATCHES 2>/dev/null) == "declare -a"* ]]; then
eapply "${PATCHES[@]}"
elif [[ -n ${PATCHES} ]]; then
eapply ${PATCHES}