chiark / gitweb /
Take the lock after reading Cargo.nail
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Sep 2020 11:02:18 +0000 (12:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Sep 2020 11:02:18 +0000 (12:02 +0100)
This ought not to make any difference now but it would make it
possible to have the locking mechanism specified in Cargo.nail, etc.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nailing-cargo

index 294df34695e3b0798dac4d5b64df29cfacf1d3c5..cf13b6d24b6a226aaa2de180118af604ab4e62d1 100755 (executable)
@@ -987,8 +987,8 @@ sub parse_args () {
 
 parse_args();
 loadconfigs();
-takelock();
 readnail();
+takelock();
 consider_alt_cargo_lock();
 consider_oot();
 readorigs();