xbps-src: when compressing info files, check if /usr/share/info exists.
This commit is contained in:
parent
0455c8342f
commit
8271950e94
1 changed files with 3 additions and 2 deletions
|
@ -101,10 +101,11 @@ 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
|
||||||
rm -f ${DESTDIR}/usr/share/info/dir
|
[ -f ${DESTDIR}/usr/share/info/dir ] && \
|
||||||
|
rm -f ${DESTDIR}/usr/share/info/dir
|
||||||
fi
|
fi
|
||||||
# Add info-files trigger.
|
# Add info-files trigger.
|
||||||
triggers="info-files $triggers"
|
triggers="info-files $triggers"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue