summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_archives
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_archives')
-rwxr-xr-xscripts/build/chroot_archives14
1 files changed, 4 insertions, 10 deletions
diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives
index b602caf4b..2457b534d 100755
--- a/scripts/build/chroot_archives
+++ b/scripts/build/chroot_archives
@@ -38,11 +38,8 @@ case "${1}" in
# Checking stage file
Check_stagefile .build/chroot_archives
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
# Restoring cache
Restore_package_cache chroot
@@ -321,11 +318,8 @@ case "${1}" in
remove)
Echo_message "Deconfiguring file /etc/apt/sources.list"
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
# Restore top-level sources
if [ -e chroot/etc/apt/sources.list.d/zz-sources.list ]