From 36395614e115cfc469e1788b74d8bc7e022f4b06 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 2 May 2013 23:06:00 -0400 Subject: libremakepkg: only lock the chroot if there is a chroot to lock. --- src/chroot-tools/libremakepkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/chroot-tools') diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg index 8e34f4a..f4fc452 100755 --- a/src/chroot-tools/libremakepkg +++ b/src/chroot-tools/libremakepkg @@ -286,7 +286,7 @@ main() { # OK, we're starting now ############################################### - lock_open_write 9 "$copydir" \ + $INCHROOT || lock_open_write 9 "$copydir" \ "Waiting for existing lock on chroot copy to be released: [$COPY]" # Set target CARCH as it might be used within the PKGBUILD to select -- cgit v1.2.2