diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-02 23:06:00 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-02 23:06:00 -0400 |
commit | 36395614e115cfc469e1788b74d8bc7e022f4b06 (patch) | |
tree | b2e3fa7bdb86e6903d5b8d80bd5fc84b2fd7a516 | |
parent | efe6325910bb0ca83e59f32b6cb937882434bf74 (diff) |
libremakepkg: only lock the chroot if there is a chroot to lock.
-rwxr-xr-x | src/chroot-tools/libremakepkg | 2 |
1 files changed, 1 insertions, 1 deletions
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 |