Let uses know how long they need to wait (max)

Co-authored-by: Adam Warner <me@adamwarner.co.uk>
pull/4682/head
yubiuser 2 years ago committed by GitHub
parent c0a2ab7b77
commit b33434d02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -262,7 +262,7 @@ os_check() {
# This function waits for dpkg to unlock, which signals that the previous apt-get command has finished.
test_dpkg_lock() {
i=0
printf " %b Waiting for package manager to finish\\n" "${INFO}"
printf " %b Waiting for package manager to finish (up to 30 seconds)\\n" "${INFO}"
# fuser is a program to show which processes use the named files, sockets, or filesystems
# So while the lock is held,
while fuser /var/lib/dpkg/lock >/dev/null 2>&1

Loading…
Cancel
Save