From 008a5a1ff90e5e0ec35301957aa42377a604ae01 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 26 Dec 2013 16:17:31 +0900 Subject: [PATCH] Force `PYTHON_BUILD_PATCH_PATH` to be absolute path --- plugins/python-build/bin/python-build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 71a32f50..ae7242b3 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1264,9 +1264,10 @@ elif [ ! -e "$DEFINITION_PATH" ]; then fi if [ -z "$PYTHON_BUILD_PATCH_PATH" ]; then - PYTHON_BUILD_PATCH_PATH="${DEFINITION_PATH%/*}/patches/${DEFINITION_PATH##*/}" + # Find patches from "./patches" relatively from the definition path + PYTHON_BUILD_PATCH_PATH="$(abs_dirname "${DEFINITION_PATH}" 2>/dev/null)/patches/${DEFINITION_PATH##*/}" else - PYTHON_BUILD_PATCH_PATH="${PYTHON_BUILD_PATCH_PATH%/}" + PYTHON_BUILD_PATCH_PATH="$(abs_dirname "${PYTHON_BUILD_PATCH_PATH}/.." 2>/dev/null)" fi PREFIX_PATH="${ARGUMENTS[1]}"