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