mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
Wait for DPkg frontend lock when trying to remove packages
This commit is contained in:
parent
4eedad3126
commit
cce9479abd
@ -221,10 +221,13 @@ cleanPackages() {
|
||||
)
|
||||
fi
|
||||
|
||||
sudo apt-get -qq remove -y --fix-missing "${packages[@]}"
|
||||
WAIT_DPKG_LOCK="-o DPkg::Lock::Timeout=60"
|
||||
sudo apt-get ${WAIT_DPKG_LOCK} -qq remove -y --fix-missing "${packages[@]}"
|
||||
|
||||
sudo apt-get autoremove -y || echo "::warning::The command [sudo apt-get autoremove -y] failed"
|
||||
sudo apt-get clean || echo "::warning::The command [sudo apt-get clean] failed failed"
|
||||
sudo apt-get ${WAIT_DPKG_LOCK} autoremove -y \
|
||||
|| echo "::warning::The command [sudo apt-get autoremove -y] failed"
|
||||
sudo apt-get ${WAIT_DPKG_LOCK} clean \
|
||||
|| echo "::warning::The command [sudo apt-get clean] failed"
|
||||
}
|
||||
|
||||
# Remove Docker images.
|
||||
|
Loading…
x
Reference in New Issue
Block a user