mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-17 17:56:11 +08:00
Provisioning: openSUSE_42.3: Wait for PackageKit to finish
Provisioning sometimes fails if PackageKit is locked at the moment we try to remove plasma5-pk-updates package. Task-number: QTQAINFRA-2141 Change-Id: I5e6c2ecab87033ce01aae915813e1d5f70ea8186 Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
This commit is contained in:
@@ -19,9 +19,15 @@ echo "Set DISPLAY"
|
||||
echo 'export DISPLAY=":0"' >> ~/.bashrc
|
||||
echo "Disabling file indexing."
|
||||
sudo balooctl disable
|
||||
echo "Disable update notifications"
|
||||
|
||||
while sudo fuser /usr/lib/packagekitd >/dev/null 2>&1 ; do
|
||||
echo "Waiting for PackageKit to finish..."
|
||||
sleep 0.5
|
||||
done
|
||||
echo "Disabling update notifications"
|
||||
sudo zypper -nq remove plasma5-pk-updates
|
||||
|
||||
|
||||
# shellcheck disable=SC2031
|
||||
if [ "$http_proxy" != "" ]; then
|
||||
sudo sed -i 's/PROXY_ENABLED=\"no\"/PROXY_ENABLED=\"yes\"/' /etc/sysconfig/proxy
|
||||
|
||||
Reference in New Issue
Block a user