mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Linux: Fix Debian packagekit failing in provisioning
Target jammy-arm64-debian-pkg-packaging fails in waitLoop function, which is also used by Ubuntu platforms. Fix by extending wait loop for lock paths: - /var/lib/dpkg/lock - /var/lib/apt/lists/lock (new) Task-number: QTQAINFRA-7361 Change-Id: If8d5eacaeb72ea6a36496093bc5c248f61997afb Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
This commit is contained in:
@@ -5,9 +5,13 @@
|
||||
set -ex
|
||||
|
||||
function waitLoop {
|
||||
while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do
|
||||
echo "Waiting for other software managers to finish... 1/2"
|
||||
sleep 0.5
|
||||
done
|
||||
|
||||
while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do
|
||||
echo "Waiting for other software managers to finish..."
|
||||
sleep 0.5
|
||||
done
|
||||
while sudo fuser /var/lib/apt/lists/lock >/dev/null 2>&1; do
|
||||
echo "Waiting for other software managers to finish... 2/2"
|
||||
sleep 0.5
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user