pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Ensure the directory containing the lockfile is cre...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f3d12de0f33f
branches:  trunk
changeset: 513871:f3d12de0f33f
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Jun 05 02:22:49 2006 +0000

description:
Ensure the directory containing the lockfile is created prior to the
lockfile's creation.  Fixes the "depends" step when PKGSRC_LOCKTYPE
is not "none".

diffstat:

 mk/bsd.pkg.mk |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 8cda641a896d -r f3d12de0f33f mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Mon Jun 05 01:42:58 2006 +0000
+++ b/mk/bsd.pkg.mk     Mon Jun 05 02:22:49 2006 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1835 2006/06/05 01:42:58 jlam Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1836 2006/06/05 02:22:49 jlam Exp $
 #
 # This file is in the public domain.
 #
@@ -1164,6 +1164,7 @@
                                ${RM} -f ${_LOCKFILE};                  \
                        fi;                                             \
                fi;                                                     \
+               ${MKDIR} ${_LOCKFILE:H};                                \
                if ${SHLOCK} -f ${_LOCKFILE} -p $$ppid; then            \
                        break;                                          \
                fi;                                                     \



Home | Main Index | Thread Index | Old Index