From c5180507d34dc747a7204608052fe0a048454f6d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 16 Mar 2009 07:02:35 +0100 Subject: [PATCH] Better check to detect if pkg has info files. --HG-- extra : convert_revision : 837f78240d6a59d511d5c0c5b0b9870d76b4b42c --- shutils/metadata.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shutils/metadata.sh b/shutils/metadata.sh index e0bd8632545..278b54950cf 100644 --- a/shutils/metadata.sh +++ b/shutils/metadata.sh @@ -111,8 +111,9 @@ 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 ${XBPS_MASTERDIR}/usr/share/info/dir ]; then + if [ -f ${DESTDIR}/usr/share/info/dir ]; then + # Always remove this file if curpkg is not texinfo. + if [ "$pkgname" != "texinfo" ]; then rm -f ${DESTDIR}/usr/share/info/dir fi # Add info-files trigger.