This commit is contained in:
Marc Beninca 2024-09-29 23:14:09 +02:00
parent c455f942b9
commit 5b1656b7aa
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -73,11 +73,14 @@ for version in "os" "3.12" "3.11" "3.10" "pypy3.10"; do
case "${file}" in
*.tar.gz)
meta_data="${file_name}-${file_version}/${file_name}.egg-info/PKG-INFO"
tar xf "${wheel}" -C "${tmp}" "${meta_data}"
if ! tar xf "${wheel}" -C "${tmp}" "${meta_data}"; then
meta_data="${file_name}-${file_version}/PKG-INFO"
tar xf "${wheel}" -C "${tmp}" "${meta_data}" || exit
fi
;;
*.whl)
meta_data="${file_name}-${file_version}.dist-info/METADATA"
unzip "${wheel}" "${meta_data}" -d "${tmp}"
unzip "${wheel}" "${meta_data}" -d "${tmp}" || exit
;;
esac
name="$(grep "${prefix}" "${tmp}/${meta_data}" | sed "s|${prefix}||")"