mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
hooks/do-extract: refrain from extracting text files outside wrksrc
This commit is contained in:
parent
3063767c4f
commit
e06efd6bbb
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ hook() {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
txt)
|
txt)
|
||||||
cp -f $srcdir/$curfile $extractdir
|
if [ "$create_wrksrc" ]; then
|
||||||
|
cp -f $srcdir/$curfile $extractdir
|
||||||
|
else
|
||||||
|
msg_error "$pkgname: ${curfile##*.} files can only be extracted when create_wrksrc is set\n"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
7z)
|
7z)
|
||||||
if command -v 7z &>/dev/null; then
|
if command -v 7z &>/dev/null; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue