hooks/post-install: do remove lib32 symlink before checking for empty dirs

this resulted in empty i686 packages never getting flagged as empty
since the /usr/lib32 -> lib symlink was only removed after the check
This commit is contained in:
John 2019-10-21 00:16:31 +02:00 committed by John Zimmermann
parent 27dc7e0bf6
commit a93c02d3cc

View file

@ -0,0 +1,7 @@
# This hook removes the /usr/lib32 symlink on x86.
hook() {
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
rm -f ${PKGDESTDIR}/usr/lib32
fi
}