db-update doesn't lock properly
Running two db-update
instances at the very same time could lead to incomplete locking with errors.
One instance (the successive one):
From https://gitlab.archlinux.org/archlinux/packaging/packages/python-cinderclient
eb34ffa..6185c86 main -> main
* [new tag] 9.4.0-1 -> 9.4.0-1
From https://gitlab.archlinux.org/archlinux/packaging/packages/python-prawcore
d1a5028..91a1795 main -> main
* [new tag] 2.4.0-1 -> 2.4.0-1
==> Updating [extra]...
-> python-cinderclient-9.4.0-1-any.pkg.tar.zst (x86_64)
-> python-prawcore-2.4.0-1-any.pkg.tar.zst (x86_64)
[main 76a7f4d1f] update python-cinderclient to 9.4.0-1 in extra-any
1 file changed, 1 insertion(+), 1 deletion(-)
[main d96f1eaf6] update python-prawcore to 2.4.0-1 in extra-any
1 file changed, 1 insertion(+), 1 deletion(-)
The other (the failing one):
error: cannot lock ref 'refs/heads/main': is at 6185c865200e2d03470b2043951c13401f8177e6 but expected eb34ffa892d7f506334b5916e0b679bceda62326
From https://gitlab.archlinux.org/archlinux/packaging/packages/python-cinderclient
! eb34ffa..6185c86 main -> main (unable to update local ref)
* [new tag] 9.4.0-1 -> 9.4.0-1
==> ERROR: Couldn't find package python-cinderclient in git!