Unpack tarballs with --no-same-owner.

This commit is contained in:
Andrius Štikonas 2021-05-08 12:32:40 +01:00
parent 8504c35685
commit cd3fb17aa6
1 changed files with 23 additions and 16 deletions

View File

@ -76,6 +76,12 @@ build () {
default_src_unpack() {
src_dir="${base_dir}/src"
# Check for new tar
if test -e "${PREFIX}/libexec/rmt"; then
for i in "${src_dir}"/*; do
tar --no-same-owner -xf "${i}"
done
else
for i in "${src_dir}"/*.tar.gz; do
[ -e "${i}" ] || continue
tar -xzf "${i}"
@ -92,6 +98,7 @@ default_src_unpack() {
[ -e "${i}" ] || continue
tar -xf "${i}"
done
fi
}
# Default function to prepare source code.