offload-build: locked chroot after user abort
When aborting offload-build
(for instance with Ctrl-C) the lock in the used chroot isn't released. Example: Running
offload-build -r testing -a x86_64 -s build.archlinux.org
creates /var/lib/archbuild/testing-x86_64/.#tpkessler.lck
that isn't deleted after aborting offload-build
. A subsequent call to offload-build
(or testing-x86_64-build
on the server) gets stuck on
==> Building in chroot for [testing] (x86_64)...
==> Locking chroot copy [tpkessler]...