xbps-src: revert 8271950e94.

This broke info files dir handling because empty dirs are removed
*after* metadata code is executed. So back to previous and known way.
This commit is contained in:
Juan RP 2011-06-25 18:36:10 +02:00
parent 09c08fe732
commit 6166c5ebc6

View file

@ -101,7 +101,7 @@ xbps_write_metadata_pkg_real()
# Find out if this package contains info files and compress
# all them with gzip.
#
if [ -d ${DESTDIR}/usr/share/info ]; then
if [ -f ${DESTDIR}/usr/share/info/dir ]; then
# Always remove this file if curpkg is not texinfo.
if [ "$pkgname" != "texinfo" ]; then
[ -f ${DESTDIR}/usr/share/info/dir ] && \