summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2018-01-29 22:41:34 +0100
committerLiang Qi <liang.qi@qt.io>2018-02-01 12:33:16 +0000
commiteb4fcfaba107edffab3683bc436df5df8d81307d (patch)
tree33d42fde2b4a3648a79039df9cde424d93764f15
parent00e31823d35eecfa6ee265b1ccdb563dfe1b905f (diff)
Instead of just warning that apt failed, tell why
With the lsof we should see which process was holding the lock. After that we can disable this source of problems. Change-Id: Ie6a014bdb101e6230139569c0e4ea51a57089c30 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Heikki Halmet <heikki.halmet@qt.io> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
-rwxr-xr-xcoin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh b/coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh
index d15e0059..a2132209 100755
--- a/coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh
+++ b/coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh
@@ -159,6 +159,7 @@ catch || {
;;
$ExceptionAPT)
echo "Failed to install package."
+ sudo lsof /var/lib/dpkg/lock
exit 1;
;;
$ExceptionSED)