Skip to content

Commit 7da4231

Browse files
committed
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 <rohit.yadav@shapeblue.com>
1 parent b57d0ae commit 7da4231

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/travis/before_install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ echo -e "\nCleaning up stale files in /tmp: "
6262
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
6363

6464
echo -e "\nUpdating the system: "
65-
sudo apt-get -q -y update > /dev/null
65+
sudo apt-get -y clean
66+
sudo apt-get -y update > /dev/null
6667

6768
echo -e "\nInstalling MySQL: "
6869

0 commit comments

Comments
 (0)