Add config file for cleaning up cache files

systemd-tmpfiles is required to enable the auto clean up.

JIRA: RHELCMP-6327
Signed-off-by: Haibo Lin <hlin@redhat.com>
(cherry picked from commit 8f6f0f463f)
This commit is contained in:
Haibo Lin 2023-04-11 16:30:46 +08:00 committed by Stepan Oksanichenko
parent 8dd344f9ee
commit c402ff3d60
Signed by: soksanichenko
GPG Key ID: AB9983172AB1E45B
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# Clean up pungi cache
d /var/cache/pungi/createrepo_c/ - - - 30d

View File

@ -49,6 +49,7 @@ setup(
},
scripts=["contrib/yum-dnf-compare/pungi-compare-depsolving"],
data_files=[
("/usr/lib/tmpfiles.d", glob.glob("contrib/tmpfiles.d/*.conf")),
("/usr/share/pungi", glob.glob("share/*.xsl")),
("/usr/share/pungi", glob.glob("share/*.ks")),
("/usr/share/pungi", glob.glob("share/*.dtd")),