From 7da423157bad8ceb8dbf6ca17f19ec3e9fdc7403 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Fri, 2 Dec 2016 22:20:28 +0530 Subject: [PATCH] CLOUDSTACK-9584: Fix Travis to cleanup apt repo before pkg installation This fixes an env issue that cleans apt repo pkg/cache, before installing new packages. Signed-off-by: Rohit Yadav --- tools/travis/before_install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/travis/before_install.sh b/tools/travis/before_install.sh index b90a0999c44..22521e9476e 100755 --- a/tools/travis/before_install.sh +++ b/tools/travis/before_install.sh @@ -62,7 +62,8 @@ echo -e "\nCleaning up stale files in /tmp: " sudo find /tmp -type f -mtime +2 | grep -v "`sudo lsof | grep /tmp |awk '{print $9}'|sed -e '1 d' |sort |uniq | tr \\n \|`" | xargs sudo rm -vf echo -e "\nUpdating the system: " -sudo apt-get -q -y update > /dev/null +sudo apt-get -y clean +sudo apt-get -y update > /dev/null echo -e "\nInstalling MySQL: "