- don't bitch if /usr/X11R6/lib/X11 does not exist, if /usr/X11R6 does not
exist either. We might have never installed X11R6 on this system. - spell nonexistent
This commit is contained in:
parent
a742ba8060
commit
30b8bfbace
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# $NetBSD: postinstall,v 1.109 2010/11/08 09:01:44 njoly Exp $
|
# $NetBSD: postinstall,v 1.110 2010/11/21 22:50:37 christos Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
|
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -633,7 +633,7 @@ detect_x11()
|
||||||
MKX11=no
|
MKX11=no
|
||||||
X11ROOTDIR=
|
X11ROOTDIR=
|
||||||
fi
|
fi
|
||||||
X11SRCDIR=/nonexisent/xsrc
|
X11SRCDIR=/nonexistent/xsrc
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1305,11 +1305,14 @@ do_x11()
|
||||||
msg "${_etcx11} is not a directory; skipping check"
|
msg "${_etcx11} is not a directory; skipping check"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
if [ -d "${DEST_DIR}/usr/X11R6/." ]
|
||||||
|
then
|
||||||
_libx11="${DEST_DIR}/usr/X11R6/lib/X11"
|
_libx11="${DEST_DIR}/usr/X11R6/lib/X11"
|
||||||
if [ ! -d "${_libx11}" ]; then
|
if [ ! -d "${_libx11}" ]; then
|
||||||
msg "${_libx11} is not a directory; skipping check"
|
msg "${_libx11} is not a directory; skipping check"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
_notfixed=""
|
_notfixed=""
|
||||||
if [ "${op}" = "fix" ]; then
|
if [ "${op}" = "fix" ]; then
|
||||||
|
|
Loading…
Reference in New Issue