debian-forge-composer/cmd/osbuild-composer
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
..
testdata templates/composer: Verify against mass sso and rh sso 2022-02-24 09:48:12 +01:00
composer.go dnfjson: Cleanup old distro cache dirs 2023-03-23 11:26:40 +01:00
config.go distro: Add azure-sap-rhui image type to RHEL8 2022-11-18 16:53:22 +01:00
config_test.go distro: Add azure-sap-rhui image type to RHEL8 2022-11-18 16:53:22 +01:00
main.go composer: add support for logrus syslog hook 2022-05-12 11:02:27 +02:00