From f48dc3238653a84755c8ae9aac7b32d656d9ab58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 26 Sep 2016 22:32:16 +0100 Subject: [PATCH] fdroidcl: actually use the cache dir for the cache --- cmd/fdroidcl/update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/fdroidcl/update.go b/cmd/fdroidcl/update.go index 7ea0cc1..a07f87c 100644 --- a/cmd/fdroidcl/update.go +++ b/cmd/fdroidcl/update.go @@ -42,7 +42,7 @@ func runUpdate(args []string) { } } if anyModified { - cachePath := filepath.Join(mustData(), "cache-gob") + cachePath := filepath.Join(mustCache(), "cache-gob") os.Remove(cachePath) } } @@ -151,7 +151,7 @@ type cache struct { } func mustLoadIndexes() []fdroidcl.App { - cachePath := filepath.Join(mustData(), "cache-gob") + cachePath := filepath.Join(mustCache(), "cache-gob") if f, err := os.Open(cachePath); err == nil { defer f.Close() var c cache