From 5a35c9a76c3afec3f652cecd871336fa47141ed5 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 25 Oct 2015 20:13:10 -0400 Subject: [PATCH] Run apt-get clean before calling apt-get update This ensures that we can call apt-get update after adding a new apt source. Debian needs a bit more time to refresh it's own caches, so we just force it's cache to be clean before calling apt-get update again. --- deb.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/deb.mk b/deb.mk index d62e87a63..cbda67226 100644 --- a/deb.mk +++ b/deb.mk @@ -126,6 +126,7 @@ deb-plugn: deb-setup echo "-> Copying files into place" mkdir -p /tmp/build/usr/local/bin $(GOPATH) + sudo apt-get clean sudo apt-get update -qq > /dev/null sudo apt-get install -qq -y git golang mercurial > /dev/null 2>&1 export PATH=$(PATH):$(GOROOT)/bin:$(GOPATH)/bin && export GOROOT=$(GOROOT) && export GOPATH=$(GOPATH) && cd /tmp/tmp/plugn && make deps