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)