Subject: Re: CVS commit: pkgsrc/mk
To: Takahiro Kambe <taca@back-street.net>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-changes
Date: 08/04/2006 08:11:11
Takahiro Kambe wrote:
> 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.

- lockdir=`echo "$$lockfile" | sed "s,/[^/].*\$$,,"`
+ lockdir=`echo "$$lockfile" | sed "s,/[^/]*\$$,,"`;

I think that too. And I still wonder how this could have worked when I 
tested it. Anyway, it's fixed. Thank you for the note.

Roland