debian-forge-composer/cmd
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
..
gen-manifests Change the rpmmd cache directory structure to include the distro name 2023-03-23 11:26:40 +01:00
mock-dnf-json mock-dnf-json: Add support for search command 2022-08-23 22:47:46 +01:00
osbuild-auth-tests Remove old build tag comments 2023-03-07 09:22:23 -08:00
osbuild-composer dnfjson: Cleanup old distro cache dirs 2023-03-23 11:26:40 +01:00
osbuild-composer-cli-tests Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
osbuild-composer-dbjobqueue-tests Remove old build tag comments 2023-03-07 09:22:23 -08:00
osbuild-composer-image-definitions Tools: fetch image test case generation matrix from composer 2022-05-13 21:01:37 +03:00
osbuild-composer-manifest-tests Remove old build tag comments 2023-03-07 09:22:23 -08:00
osbuild-dnf-json-tests Change the rpmmd cache directory structure to include the distro name 2023-03-23 11:26:40 +01:00
osbuild-image-tests Remove old build tag comments 2023-03-07 09:22:23 -08:00
osbuild-koji koji: fix excessive logging & monitoring 2022-04-05 23:48:30 +02:00
osbuild-koji-tests Remove old build tag comments 2023-03-07 09:22:23 -08:00
osbuild-mock-openid-provider Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
osbuild-package-sets distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
osbuild-pipeline Change the rpmmd cache directory structure to include the distro name 2023-03-23 11:26:40 +01:00
osbuild-playground Change the rpmmd cache directory structure to include the distro name 2023-03-23 11:26:40 +01:00
osbuild-service-maintenance Remove old build tag comments 2023-03-07 09:22:23 -08:00
osbuild-store-dump Change the rpmmd cache directory structure to include the distro name 2023-03-23 11:26:40 +01:00
osbuild-upload-aws osbuild-service-maintenance: Clean up expired images 2021-12-03 00:14:09 +00:00
osbuild-upload-azure azure: add an option to tag page blobs 2022-06-13 21:06:01 +02:00
osbuild-upload-container container/client: rework tls settings 2022-07-21 13:32:07 +02:00
osbuild-upload-gcp Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
osbuild-upload-generic-s3 awscloud: add option to mark S3 object as public 2022-09-19 22:56:36 +02:00
osbuild-upload-oci Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
osbuild-worker Change the rpmmd cache directory structure to include the distro name 2023-03-23 11:26:40 +01:00