pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/install If we fail the user/group existence test, t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bdb4e1ec89a1
branches:  trunk
changeset: 487015:bdb4e1ec89a1
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jan 06 23:44:35 2005 +0000

description:
If we fail the user/group existence test, then don't proceed to the
directory creation, which often need to create directories owned by
a particular user.

diffstat:

 mk/install/install |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 3f17fa97d49e -r bdb4e1ec89a1 mk/install/install
--- a/mk/install/install        Thu Jan 06 22:16:21 2005 +0000
+++ b/mk/install/install        Thu Jan 06 23:44:35 2005 +0000
@@ -1,6 +1,6 @@
 # start of install
 #
-# $NetBSD: install,v 1.32 2004/10/11 22:04:19 reed Exp $
+# $NetBSD: install,v 1.33 2005/01/06 23:44:35 jlam Exp $
 
 if [ -z "${CONF_FILES}" -a -z "${CONF_FILES_PERMS}" -a                 \
      -z "${SUPPORT_FILES}" -a -z "${SUPPORT_FILES_PERMS}" -o           \
@@ -105,6 +105,15 @@
                        fi
                done
        fi
+       if ! msgempty; then
+               ${ECHO} "==========================================================================="
+               msgprint
+               ${ECHO} ""
+               ${ECHO} "==========================================================================="
+       fi
+       if [ ${_pkg_exit} -gt 0 ]; then
+               exit ${_pkg_exit}
+       fi
 
        # Create package directories at pre-install time.
        #



Home | Main Index | Thread Index | Old Index