openbsd-ports/games/wtf/patches/patch-wtf
sthen 026ad89d1e better handling of empty package directories for pkg_info; from LEVAI Daniel
while there, don't use groff, mandoc(7) is perfectly happy with the mdoc source.
2011-09-20 11:08:52 +00:00

13 lines
351 B
Plaintext

$OpenBSD: patch-wtf,v 1.1 2011/09/20 11:08:52 sthen Exp $
--- wtf.orig Tue Sep 20 12:04:02 2011
+++ wtf Tue Sep 20 12:04:29 2011
@@ -65,7 +65,7 @@ while [ $# -gt 0 ] ; do
# Try pkg_info(1) next
ans=`pkg_info -qc $1 2> /dev/null`
- if [ $? -eq 0 ] ; then
+ if [ $? -eq 0 ] && [ x"${ans}" != x ] ; then
echo "$1: $ans"
shift ; continue
fi