summaryrefslogtreecommitdiff
path: root/system/man-db/doinst.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-01-25 17:31:12 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-04 07:00:04 +0700
commit1b452b611e92199d0db099be5bdb03aab009e8d7 (patch)
tree47f19902a4d15882082f675a57f9900bb1a80dc7 /system/man-db/doinst.sh
parent7932cf4c848d7809b5cf1e494a87449833098fdc (diff)
downloadslackbuilds-1b452b611e92199d0db099be5bdb03aab009e8d7.tar.gz
system/man-db: Updated for version 2.7.6.
Diffstat (limited to 'system/man-db/doinst.sh')
-rw-r--r--system/man-db/doinst.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/system/man-db/doinst.sh b/system/man-db/doinst.sh
index 42773f6cd9..4478281966 100644
--- a/system/man-db/doinst.sh
+++ b/system/man-db/doinst.sh
@@ -26,7 +26,12 @@ config etc/man_db.conf.new
# db is corrupted and the user is trying to fix it by reinstalling
# this package).
-[ -x /bin/readlink ] && \
-[ "$( /bin/readlink -f $( pwd ) )" = "/" ] && \
-( [ -x /opt/man-db/bin/mandb ] && /opt/man-db/bin/mandb -c -q ) || \
-( [ -x /usr/bin/mandb ] && /usr/bin/mandb -c -q )
+# the 2>/dev/null was added for 2.7.6 because it complains about
+# missing CACHEDIR.TAG files... which don't matter, because we've
+# got NOCACHE in the config file.
+( \
+ [ -x /bin/readlink ] && \
+ [ "$( /bin/readlink -f $( pwd ) )" = "/" ] && \
+ ( [ -x /opt/man-db/bin/mandb ] && /opt/man-db/bin/mandb -c -q ) || \
+ ( [ -x /usr/bin/mandb ] && /usr/bin/mandb -c -q ) \
+) 2>/dev/null