Skip to content

Commit

Permalink
Merge pull request #717 from ffdixon/v2.7.x-release
Browse files Browse the repository at this point in the history
Added extra check to ensure apt-get is not in use
  • Loading branch information
ffdixon authored Jan 12, 2024
2 parents 01d0af1 + a6f10b1 commit 1e36a6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bbb-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ need_pkg() {
if ! dpkg -s "${@}" >/dev/null 2>&1; then
LC_CTYPE=C.UTF-8 apt-get install -yq "${@}"
fi
while fuser /var/lib/dpkg/lock >/dev/null 2>&1; do echo "Sleeping for 1 second because of dpkg lock"; sleep 1; done
while fuser /var/lib/dpkg/lock >/dev/null 2>&1; do echo "Sleeping for 1 second because of dpkg/lock is in use"; sleep 1; done
while lsof /var/lib/dpkg/lock-frontend >/dev/null 2>&1; do echo "Sleeping for 1 second because dpkg/lock-frontend in use"; sleep 1; done
}

need_ppa() {
Expand Down

0 comments on commit 1e36a6b

Please sign in to comment.