xbps-src: when compressing info files, check if /usr/share/info exists.
This commit is contained in:
parent
0455c8342f
commit
8271950e94
|
@ -101,9 +101,10 @@ xbps_write_metadata_pkg_real()
|
||||||
# Find out if this package contains info files and compress
|
# Find out if this package contains info files and compress
|
||||||
# all them with gzip.
|
# all them with gzip.
|
||||||
#
|
#
|
||||||
if [ -f ${DESTDIR}/usr/share/info/dir ]; then
|
if [ -d ${DESTDIR}/usr/share/info ]; then
|
||||||
# Always remove this file if curpkg is not texinfo.
|
# Always remove this file if curpkg is not texinfo.
|
||||||
if [ "$pkgname" != "texinfo" ]; then
|
if [ "$pkgname" != "texinfo" ]; then
|
||||||
|
[ -f ${DESTDIR}/usr/share/info/dir ] && \
|
||||||
rm -f ${DESTDIR}/usr/share/info/dir
|
rm -f ${DESTDIR}/usr/share/info/dir
|
||||||
fi
|
fi
|
||||||
# Add info-files trigger.
|
# Add info-files trigger.
|
||||||
|
|
Loading…
Reference in New Issue