From f3c5c5fe96b7c404037881f944f6d63a964fc592 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 15 May 2009 03:09:38 +0200 Subject: [PATCH] shutils/metadata.sh: do not compress non info files. --HG-- extra : convert_revision : f47d7a574ac8b22c539420ab572d38cef38a527e --- shutils/metadata.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shutils/metadata.sh b/shutils/metadata.sh index 984b0e3b30..d2f383e72f 100644 --- a/shutils/metadata.sh +++ b/shutils/metadata.sh @@ -133,9 +133,15 @@ xbps_write_metadata_pkg_real() j=$(echo $f|sed -e "$fpattern") [ "$j" = "" ] && continue [ "$j" = "/usr/share/info/dir" ] && continue + # Ignore compressed files. if $(echo $j|grep -q '.*.gz$'); then continue fi + # Ignore non info files. + if ! $(echo $j|grep -q '.*.info$') && \ + ! $(echo $j|grep -q '.*.info-[0-9]*$'); then + continue + fi if [ -h ${DESTDIR}/$j ]; then dirat=$(dirname $j) lnkat=$(readlink ${DESTDIR}/$j)