summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-02 23:06:00 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-02 23:06:00 -0400
commit36395614e115cfc469e1788b74d8bc7e022f4b06 (patch)
treeb2e3fa7bdb86e6903d5b8d80bd5fc84b2fd7a516 /src/chroot-tools
parentefe6325910bb0ca83e59f32b6cb937882434bf74 (diff)
libremakepkg: only lock the chroot if there is a chroot to lock.
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/libremakepkg2
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