use an existing file otherwise the test always fails.

This commit is contained in:
christos 2008-10-17 21:14:40 +00:00
parent 06ec28991b
commit 3e0c867bca
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: postinstall,v 1.72 2008/10/17 20:52:34 christos Exp $
# $NetBSD: postinstall,v 1.73 2008/10/17 21:14:40 christos Exp $
#
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@ -1413,9 +1413,9 @@ EOF
[ -d "${DEST_DIR}" ] || err 2 "${DEST_DIR} is not a directory"
[ -n "${MACHINE}" ] || err 2 "\${MACHINE} is not defined"
[ -n "${MACHINE_ARCH}" ] || err 2 "\${MACHINE_ARCH} is not defined"
# if ! $SOURCEMODE && ! [ -f "${SRC_DIR}/etc/mtree/set.etc" ]; then
# err 2 "Files from the etc.tgz set are missing"
# fi
if ! $SOURCEMODE && ! [ -f "${SRC_DIR}/etc/master.passwd" ]; then
err 2 "Files from the etc.tgz set are missing"
fi
# If directories are /, clear them, so various messages
# don't have leading "//". However, this requires