mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 21:12:29 +00:00
Sort built-in patches by its name
This commit is contained in:
parent
c977774977
commit
2cea06b88a
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue