diff options
author | jlam <jlam@pkgsrc.org> | 2006-06-05 02:22:49 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-06-05 02:22:49 +0000 |
commit | 711838a579f407a88775a4ba45fec8139045263f (patch) | |
tree | d9178ee8d63928d6d024cfe9aab62a31d4bd28b9 | |
parent | a6459db5e077c8cc04058174ab4eada99fb61cb1 (diff) | |
download | pkgsrc-711838a579f407a88775a4ba45fec8139045263f.tar.gz |
Ensure the directory containing the lockfile is created prior to the
lockfile's creation. Fixes the "depends" step when PKGSRC_LOCKTYPE
is not "none".
-rw-r--r-- | mk/bsd.pkg.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index b553c7fbdd5..43b7b270191 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -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 @@ acquire-lock: .USE ${RM} -f ${_LOCKFILE}; \ fi; \ fi; \ + ${MKDIR} ${_LOCKFILE:H}; \ if ${SHLOCK} -f ${_LOCKFILE} -p $$ppid; then \ break; \ fi; \ |