shutils/metadata.sh: do not compress non info files.

--HG--
extra : convert_revision : f47d7a574ac8b22c539420ab572d38cef38a527e
This commit is contained in:
Juan RP 2009-05-15 03:09:38 +02:00
parent 7899c05ca2
commit f3c5c5fe96
1 changed files with 6 additions and 0 deletions

View File

@ -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)