pungi/pungi/scripts
Lubomír Sedlář e6d9f31ef4 Add script for cleaning up the cache
Pungi would by default only ever add files to the cache. That would
eventually result in essentially a mirror of the Koji volume.

This patch adds a helper cleanup script. When called, it goes through
files in the cache and deletes anything that is not hardlinked from
elsewhere and with mtime not updated recently.

Cleaning up files that hardlinked from some compose would not save any
space anyway. The mtime check should account for cases like subpackage
being downloaded but not included in any compose. This would avoid it
from being downloaded over and over again.

When a compose fails or is aborted, there can be a stale lock file left
behind in the cache. This script cleans that up too.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2023-08-23 07:26:56 +00:00
..
__init__.py cleanup: refactor scripts via entry points 2019-12-10 10:53:31 +08:00
cache_cleanup.py Add script for cleaning up the cache 2023-08-23 07:26:56 +00:00
comps_filter.py Filter out environment groups unmatch given arch 2022-02-22 11:33:25 +08:00
config_dump.py Drop pungi-orchestrator code 2023-06-02 06:14:10 +00:00
config_validate.py extra_isos: Allow reusing old images 2021-11-02 07:08:00 +00:00
create_unified_isos.py Format code 2021-03-02 18:31:45 +08:00
fedmsg_notification.py Set the priority in the fedora-messaging notifier 2023-05-03 14:20:57 +02:00
patch_iso.py Support change of the patch-iso temp dir 2020-09-15 15:47:16 +02:00
pungi.py Fix black complaints 2023-02-02 12:53:32 +01:00
pungi_gather.py Format code 2021-03-02 18:31:45 +08:00
pungi_koji.py Remove repository cloning multiple times 2023-08-23 07:20:35 +00:00
report_progress.py Format code base with black 2020-02-05 17:35:47 +08:00
wait_for_signed_ostree_handler.py Port scripts/wait_for_signed_ostree_handler.py to fedora-messaging 2020-06-17 23:28:27 +02:00