debian-forge-composer/internal/dnfjson
Brian C. Lane f731ab53d0 dnfjson: Cleanup old distro cache dirs
This adds a function, CleanupOldCacheDirs, that checks the dirs under
/var/cache/osbuild-composer/rpmmd/ and removes files and directories
that don't match the current list of supported distros.

This will clean up the cache from old releases as the are retired, and
will also cleanup the old top level cache directory structure after an
upgrade.

NOTE: This function does not return errors, any real problems it
encounters will also be caught by the cache initialization code and
handled there.
2023-03-23 11:26:40 +01:00
..
cache.go dnfjson: Cleanup old distro cache dirs 2023-03-23 11:26:40 +01:00
cache_test.go dnfjson: Cleanup old distro cache dirs 2023-03-23 11:26:40 +01:00
dnfjson.go dnfjson: Adjust cache size info for new layout 2023-03-23 11:26:40 +01:00
dnfjson_test.go Change the rpmmd cache directory structure to include the distro name 2023-03-23 11:26:40 +01:00