hooks/post-install/06-prepare-32bit.sh: do not convert deps that don't have shlib-provides.

This commit is contained in:
Juan RP 2014-03-30 13:07:33 +02:00
parent e1155358bb
commit 19f3a64de8
1 changed files with 7 additions and 0 deletions

View File

@ -97,6 +97,13 @@ hook() {
printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps
continue
fi
# If dependency does not have "shlib-provides" do not
# change it to 32bit.
_shprovides="$($XBPS_QUERY_CMD -R --property=shlib-provides "$f")"
if [ -z "${_shprovides}" ]; then
printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps
continue
fi
printf "${pkgn}-32bit${pkgv} " >> $destdir32/rdeps
done
fi