dnfjson: Adjust cache size info for new layout

The repo id hash directories are now down one level, below a directory
named for the distribution.
This commit is contained in:
Brian C. Lane 2023-03-01 16:25:22 -08:00 committed by Achilleas Koutsou
parent 3481e1d3ba
commit 8f20b550ea
3 changed files with 32 additions and 12 deletions

View file

@ -48,7 +48,7 @@ type BaseSolver struct {
// method.
func NewBaseSolver(cacheDir string) *BaseSolver {
return &BaseSolver{
cache: newRPMCache(cacheDir, 524288000), // 500 MiB
cache: newRPMCache(cacheDir, 1024*1024*1024), // 1 GiB
dnfJsonCmd: []string{"/usr/libexec/osbuild-composer/dnf-json"},
resultCache: NewDNFCache(60 * time.Second),
}