summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-27 10:39:54 +0100
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-27 10:39:54 +0100
commit882ca33360066d01c1236b0f974070952bdda3e4 (patch)
tree1a73d2c4e580d6b9d3eeec106a7e1d63eb6fba38
parenteb06b6e06b3f789cc1a5b92c60f1e0638ebe19b4 (diff)
downloadwrt-widgets-tizen_5.0.tar.gz
wrt-widgets-tizen_5.0.tar.bz2
wrt-widgets-tizen_5.0.zip
serialize calls to pkgcmd to avoid installation errorsHEADtizen_5.5.m2_releasetizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_unified/20170404.035402submit/tizen_common/20150227.101354submit/tizen_5.5_wearable_hotfix/20201026.184309submit/tizen_5.5_mobile_hotfix/20201026.185109submit/tizen_5.5/20191031.000013submit/tizen_5.5/20191031.000011submit/tizen_5.5/20191031.000009submit/tizen_5.0/20181106.000001submit/tizen_5.0/20181101.000008submit/tizen_4.0_unified/20170814.115522submit/tizen_4.0/20170828.100008submit/tizen_4.0/20170814.115522submit/tizen_4.0/20170811.094300submit/tizen_3.0_common/20161104.104000submit/tizen_3.0.2014.q4_common/20150227.101440accepted/tizen/unified/20170404.041538accepted/tizen/common/20150227.101629accepted/tizen/5.5/unified/wearable/hotfix/20201027.094803accepted/tizen/5.5/unified/mobile/hotfix/20201027.070949accepted/tizen/5.5/unified/20191031.033632accepted/tizen/5.0/unified/20181106.202046accepted/tizen/4.0/unified/20170828.222111accepted/tizen/4.0/unified/20170816.015939accepted/tizen/3.0/common/20161114.112235accepted/tizen/3.0.2014.q4/common/20150227.101655tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizen_4.0tizen_3.0.m2tizen_3.0.2015.q1_commontizen_3.0.2014.q4_commontizenaccepted/tizen_unifiedaccepted/tizen_commonaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unifiedaccepted/tizen_4.0_unifiedaccepted/tizen_3.0_commonaccepted/tizen_3.0.2014.q4_common
Change-Id: I543fc1c5fdeef33cd3a30d87a731c013bfb26785 Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
-rwxr-xr-xinstall_widgets.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/install_widgets.sh b/install_widgets.sh
index d5e8801..2390873 100755
--- a/install_widgets.sh
+++ b/install_widgets.sh
@@ -18,9 +18,9 @@ function do_install() {
local try=1
local ok=0
while [ $try -le 3 ]; do
- pkgcmd -i -q -t wgt -p $wgtdir/$wgt && { ok=1; break; }
+ flock -w 30 -e /tmp/pkgcmd_lock pkgcmd -i -q -t wgt -p $wgtdir/$wgt && { ok=1; break; }
try=$((try+1))
- sleep 3
+ sleep 1
done
[ $ok -eq 1 ] && {
info "$wgt installed successfully"