hooks/prepare-32bit: add some more debugging to see what's going on.

This commit is contained in:
Juan RP 2014-08-18 13:11:46 +02:00
parent 916dd385c9
commit 344ca13dab
1 changed files with 5 additions and 0 deletions

View File

@ -101,12 +101,14 @@ hook() {
fi fi
# If dependency is a development pkg switch it to 32bit. # If dependency is a development pkg switch it to 32bit.
if [[ $pkgn =~ '-devel' ]]; then if [[ $pkgn =~ '-devel' ]]; then
echo " RDEP: $f -> ${pkgn}-32bit${pkgv}"
printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps
continue continue
fi fi
# If dependency is noarch do not change it to 32bit. # If dependency is noarch do not change it to 32bit.
_arch=$($XBPS_QUERY_CMD -R --property=architecture "$f") _arch=$($XBPS_QUERY_CMD -R --property=architecture "$f")
if [ "${_arch}" = "noarch" ]; then if [ "${_arch}" = "noarch" ]; then
echo " RDEP: $f -> ${pkgn}${pkgv}"
printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps
continue continue
fi fi
@ -126,6 +128,7 @@ hook() {
echo " RDEP: $f -> ${pkgn}-32bit${pkgv}" echo " RDEP: $f -> ${pkgn}-32bit${pkgv}"
printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps
else else
echo " RDEP: $f -> ${pkgn}${pkgv}"
printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps
fi fi
else else
@ -135,6 +138,7 @@ hook() {
echo " RDEP: $f -> ${pkgn}-32bit${pkgv}" echo " RDEP: $f -> ${pkgn}-32bit${pkgv}"
printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps
else else
echo " RDEP: $f -> ${pkgn}${pkgv}"
printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps
fi fi
fi fi
@ -150,6 +154,7 @@ hook() {
done done
# If it's a development pkg add a dependency to the 64bit pkg. # If it's a development pkg add a dependency to the 64bit pkg.
if [[ $pkgname =~ '-devel' ]]; then if [[ $pkgname =~ '-devel' ]]; then
echo " RDEP: ${pkgver}"
printf "${pkgver} " >> ${destdir32}/rdeps printf "${pkgver} " >> ${destdir32}/rdeps
fi fi
printf "\n" >> ${destdir32}/rdeps printf "\n" >> ${destdir32}/rdeps