mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
init.sh: remove unnecessary lockfile checks
we don't need these anymore, because we now know whether or not the lock file exists in these cases. this is because child/parent instance determination is now done based on the presence of that file, rather than how TMPDIR is set; and TMPDIR is now set accordingly, via more robust logic as in previous patching. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-3
@@ -78,7 +78,6 @@ xbmk_set_env()
|
||||
|
||||
xbmk_parent_check_tmp
|
||||
|
||||
[ -f "$xbmklock" ] && err "'$xbmklock' exists. Is a build running?"
|
||||
printf "%s\n" "$xbtmp" > "$xbmklock" || \
|
||||
err "cannot create '$xbmklock'"; :
|
||||
|
||||
@@ -139,8 +138,7 @@ xbmk_child_set_tmp()
|
||||
export TMPDIR="$xbtmpchk"
|
||||
|
||||
[ -z "${XBMK_CACHE+x}" ] && err "XBMK_CACHE unset on child"
|
||||
[ -z "${XBMK_THREADS+x}" ] && xbmk_set_threads
|
||||
e "lock" f missing && err "lock file absent on child"
|
||||
[ -z "${XBMK_THREADS+x}" ] && xbmk_set_threads; :
|
||||
}
|
||||
|
||||
xbmk_parent_check_tmp()
|
||||
|
||||
Reference in New Issue
Block a user