From 5b7eb42a9f65f8caf4469b11664b5e28a282ce26 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 26 Dec 2013 15:44:56 +0900 Subject: [PATCH] Add `-p0` as an option for patch if both `PATCH_OPTS` and `PACKAGE_PATCH_OPTS` aren't defined --- plugins/python-build/bin/python-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 82cbcb92..71a32f50 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -169,7 +169,7 @@ apply_patches() { local PACKAGE_PATCH_PATH="${package_var_name}_PATCH_PATH" local PACKAGE_PATCH_OPTS="${package_var_name}_PATCH_OPTS" - if [ -z "${PATCH_OPTS+defined}" ] && [ "${!PACKAGE_PATCH_OPTS+defined}" ]; then + if [ -z "${PATCH_OPTS+defined}" ] && [ -z "${!PACKAGE_PATCH_OPTS+defined}" ]; then local PATCH_OPTS="-p0" fi