Use `tar -f -` to read from stdin.

Not all implementations of tar assume reads from stdin if no filename
is given. Fixes extracts on OpenBSD.
This commit is contained in:
Simon Howard 2020-05-16 17:05:50 -04:00
parent 8782712aaf
commit 8fb2d1ea58
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ fetch_download::extract_package_file() {
local parent_dir=$(dirname "$PACKAGE_BUILD_DIR")
cd "$parent_dir"
fi
(fetch_download::decompress "$dlfile" | tar -x) || (
(fetch_download::decompress "$dlfile" | tar -x -f -) || (
mv "$dlfile" "$dlfile.bad"
chocpkg::abort "Failed to extract $PACKAGE_FILENAME: bad download?"
)