mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-11-10 07:11:39 +00:00
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:
parent
8782712aaf
commit
8fb2d1ea58
1 changed files with 1 additions and 1 deletions
|
@ -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?"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue