mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-23 01:27:02 +02:00
xbps-src: install_pkg_from_repos: avoid shell redirections via pkgdeps.
This commit is contained in:
parent
0d09fc1e55
commit
713247b16b
1 changed files with 5 additions and 2 deletions
|
@ -30,13 +30,16 @@
|
|||
#
|
||||
install_pkg_from_repos()
|
||||
{
|
||||
local cmd rval tmplogf
|
||||
local cmd rval tmplogf tmpdepf
|
||||
|
||||
msg_normal "$pkgver: installing dependency $1 ...\n"
|
||||
|
||||
cmd="${fakeroot_cmd} ${fakeroot_cmd_args} ${XBPS_BIN_CMD} -Ay install"
|
||||
tmplogf=$(mktemp)
|
||||
${cmd} "${1}" >${tmplogf} 2>&1
|
||||
tmpdepf=$(mktemp)
|
||||
echo "'${1}'" > $tmpdepf
|
||||
${cmd} $(cat $tmpdepf) >$tmplogf 2>&1
|
||||
rm -f $tmpdepf
|
||||
rval=$?
|
||||
if [ $rval -ne 0 -a $rval -ne 6 ]; then
|
||||
# xbps-bin can return:
|
||||
|
|
Loading…
Add table
Reference in a new issue