Browse Source

fdroidcl: actually use the cache dir for the cache

pull/20/head
Daniel Martí 10 years ago
parent
commit
f48dc32386
  1. 4
      cmd/fdroidcl/update.go

4
cmd/fdroidcl/update.go

@ -42,7 +42,7 @@ func runUpdate(args []string) {
} }
} }
if anyModified { if anyModified {
cachePath := filepath.Join(mustData(), "cache-gob") cachePath := filepath.Join(mustCache(), "cache-gob")
os.Remove(cachePath) os.Remove(cachePath)
} }
} }
@ -151,7 +151,7 @@ type cache struct {
} }
func mustLoadIndexes() []fdroidcl.App { func mustLoadIndexes() []fdroidcl.App {
cachePath := filepath.Join(mustData(), "cache-gob") cachePath := filepath.Join(mustCache(), "cache-gob")
if f, err := os.Open(cachePath); err == nil { if f, err := os.Open(cachePath); err == nil {
defer f.Close() defer f.Close()
var c cache var c cache

Loading…
Cancel
Save