summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/man/man-1.6e/man-1.5i2-initial.patch
blob: 1b1442385ef6ca37e3def3657fff18de1ca3ff79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- man-1.5i2/src/makewhatis.sh.initial	Tue Jul  3 15:38:39 2001
+++ man-1.5i2/src/makewhatis.sh	Tue Jul  3 15:39:39 2001
@@ -81,8 +81,10 @@
 	continue;;
     -s) setsections=1
 	continue;;
-    -u) findarg="-newer /var/cache/man/whatis"
-	update=1
+    -u) if [ -e /var/cache/man/whatis ]; then
+	  findarg="-newer /var/cache/man/whatis"
+	  update=1
+	fi
 	continue;;
     -v) verbose=1
 	continue;;