Ver código fonte

python-build: Support patch paths with spaces/special characters (#3251)

This is now possible because all non-EOL MacOS versions now support
`find -print0`/`sort -z`/`xargs -0`
pull/3255/head
native-api 1 ano atrás
committed by GitHub
pai
commit
9656bcf0b9
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: B5690EEEBB952194
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      plugins/python-build/bin/python-build

+ 2
- 2
plugins/python-build/bin/python-build Ver arquivo

@ -1160,8 +1160,8 @@ setup_builtin_patches() {
cat >"${package_name}.patch"
HAS_PATCH=true
elif [[ -d "${package_patch_path}" ]]; then
{ find "${package_patch_path}" -maxdepth 1 -type f
} 2>/dev/null | sort | xargs cat 1>"${package_name}.patch"
{ find "${package_patch_path}" -maxdepth 1 -type f -print0
} 2>/dev/null | sort -z | xargs -0 cat 1>"${package_name}.patch"
HAS_PATCH=true
fi
}

Carregando…
Cancelar
Salvar