Subject: Re: CVS commit: pkgsrc/mk
To: None <rillig@netbsd.org>
From: Takahiro Kambe <taca@back-street.net>
List: pkgsrc-changes
Date: 08/04/2006 14:25:17
In message <20060803191243.467E6211CB@cvs.netbsd.org>
on Thu, 3 Aug 2006 19:12:43 +0000 (UTC),
Roland Illig <rillig@netbsd.org> wrote:
> Modified Files:
> pkgsrc/mk: bsd.pkg.mk
> pkgsrc/mk/install: deinstall.mk
>
> Log Message:
> When installing or deinstalling a package, it is not enough to lock the
> WRKDIR against foreign processes. Instead, the PKG_DBDIR is locked,
> preventing other (pkgsrc) processes from modifying the set of installed
> packages while another one is doing that.
I think that there is a small typo.
--
Takahiro Kambe <taca@back-street.net>
Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.1880
diff -u -u -r1.1880 bsd.pkg.mk
--- bsd.pkg.mk 3 Aug 2006 19:12:42 -0000 1.1880
+++ bsd.pkg.mk 4 Aug 2006 05:23:48 -0000
@@ -644,7 +644,7 @@
${RM} -f "$$lockfile"; \
fi; \
fi; \
- lockdir=`echo "$$lockfile" | sed "s,/[^/].*\$$,,"` \
+ lockdir=`echo "$$lockfile" | sed "s,/[^/]*\$$,,"`; \
${MKDIR} "$$lockdir"; \
if ${SHLOCK} -f "$$lockfile" -p $$ppid; then \
break; \