diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-30 21:55:08 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-30 21:55:08 -0400 |
commit | fd460d96a9c1fd08bbf87ee74e7d230665b0ec18 (patch) | |
tree | 31681fbb93fe75a15a401f42c44cda8056fe33d7 | |
parent | 705f41e25cdf89bccef22a76a163f2ea52603979 (diff) | |
download | devtools-fd460d96a9c1fd08bbf87ee74e7d230665b0ec18.tar.xz |
makechrootpkg.in: make lock waiting messages more clear, fix .lock.lock bug
-rw-r--r-- | makechrootpkg.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index b98951f..d1a37e7 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -127,12 +127,14 @@ chroottype=$(stat -f -c %T "$chrootdir") # Lock the chroot we want to use. We'll keep this lock until we exit. # Note this is the same FD number as in mkarchroot -lock_open_write 9 "$copydir.lock" "Locking chroot copy [$copy]" +lock_open_write 9 "$copydir" \ + "Waiting for existing lock on chroot copy to be released: [$copy]" if [[ ! -d $copydir ]] || $clean_first; then # Get a read lock on the root chroot to make # sure we don't clone a half-updated chroot - lock_open_read 8 "$chrootdir/root" "Locking clean chroot" + lock_open_read 8 "$chrootdir/root" \ + "Waiting for existing lock on clean chroot to be released" stat_busy "Creating clean working copy [$copy]" if [[ "$chroottype" == btrfs ]]; then |