From 1d8bae2d9c13453b86eb1caefe7df580358296fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Apr 2018 19:45:20 +0300 Subject: citest --- tools/ci/scripts/init.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh index 73c7aba..a5b352f 100755 --- a/tools/ci/scripts/init.sh +++ b/tools/ci/scripts/init.sh @@ -57,18 +57,23 @@ function aptget_install { then return fi - echo "apt-get -y -qq install $*" - apt-get -y -qq install $* + echo "apt-get -y -qq install aptitude" + apt-get -y -qq install aptitude + echo "aptitude update" + aptitude update + + echo "aptitude -y install $*" + aptitude -y install $* if [ "$?" != 0 ]; then sleep 1s - apt-get -y -qq install $* + aptitude -y install $* if [ "$?" != 0 ]; then sleep 2s if [ "$?" != 0 ]; then sleep 5s - apt-get -y -qq install $* + aptitude -y install $* fi - apt-get -y -qq install $* + aptitude -y install $* fi fi } -- cgit v1.2.3-60-g2f50