From 2cea06b88a19266393ec6b0defee7909531fcce0 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Wed, 15 Jan 2014 17:09:58 +0900 Subject: [PATCH] Sort built-in patches by its name --- plugins/python-build/bin/python-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index f57e2dc4..2dd8fc0b 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -709,7 +709,11 @@ before_install_package_patch() { ORIG_HAS_PATCH="$HAS_PATCH" # Apply built-in patches if patch was not given from stdin if [ -z "$HAS_PATCH" ] && [ -d "${package_patch_path}" ]; then - ( cat "${package_patch_path}"/* || true ) 2>/dev/null 1>"${package_name}.patch" + local patch + { for patch in "${package_patch_path}"/*; do + [ -f "${patch}" ] && echo "${patch}" + done + } | sort | xargs cat -- 1>"${package_name}.patch" exec <&- exec <"${package_name}.patch" HAS_PATCH=true