From 7824268597f455e4fccebf580cd642ffb502af06 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 28 May 2014 14:08:20 +0200 Subject: [PATCH] hooks/prepare-32bit: reset vars just in case. --- common/hooks/post-install/06-prepare-32bit.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/hooks/post-install/06-prepare-32bit.sh b/common/hooks/post-install/06-prepare-32bit.sh index d2c52e3e59..645f02ff97 100644 --- a/common/hooks/post-install/06-prepare-32bit.sh +++ b/common/hooks/post-install/06-prepare-32bit.sh @@ -87,7 +87,7 @@ hook() { _deps="$(cat ${PKGDESTDIR}/rdeps)" fi for f in ${_deps}; do - unset pkgn pkgv _noarch _hasdevel + unset pkgn pkgv _arch _shprovides pkgn="$($XBPS_UHELPER_CMD getpkgdepname $f)" if [ -z "${pkgn}" ]; then @@ -100,8 +100,8 @@ hook() { pkgv="$($XBPS_UHELPER_CMD getpkgdepversion ${f})" fi # If dependency is noarch do not change it to 32bit. - _noarch=$($XBPS_QUERY_CMD -R --property=architecture "$f") - if [ "${_noarch}" = "noarch" ]; then + _arch=$($XBPS_QUERY_CMD -R --property=architecture "$f") + if [ "${_arch}" = "noarch" ]; then printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps continue fi