pungi/pungi
Lubomír Sedlář 8eccfc5a03
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>

(cherry picked from commit e6d9f31ef4 (centos_master))
2023-11-10 16:55:43 +02:00
..
compose_metadata Format code base with black 2020-02-05 17:35:47 +08:00
ostree ostree: Add unified core mode for compose in rpm-ostree 2022-08-23 10:52:45 +02:00
phases Add ability to download images 2023-11-10 16:55:20 +02:00
scripts Add script for cleaning up the cache 2023-11-10 16:55:43 +02:00
wrappers Add support for not having koji volume mounted locally 2023-11-10 16:55:19 +02:00
__init__.py Format code base with black 2020-02-05 17:35:47 +08:00
arch_utils.py Format code 2021-03-02 18:31:45 +08:00
arch.py Format code base with black 2020-02-05 17:35:47 +08:00
checks.py Add support for not having koji volume mounted locally 2023-11-10 16:55:19 +02:00
common.py Format code base with black 2020-02-05 17:35:47 +08:00
compose.py Add support for not having koji volume mounted locally 2023-11-10 16:55:19 +02:00
config.py Format code base with black 2020-02-05 17:35:47 +08:00
createiso.py iso: Support joliet long names 2023-11-10 16:54:42 +02:00
dnf_wrapper.py Format code base with black 2020-02-05 17:35:47 +08:00
errors.py Move UnsignedPackagesError to a separate file 2021-02-08 10:16:32 +00:00
gather_dnf.py Support require_all_comps_packages on DNF backend 2023-11-10 16:55:17 +02:00
gather.py Fix black complaints 2023-11-10 16:50:38 +02:00
graph.py Format code 2021-03-02 18:31:45 +08:00
ks.py Format code base with black 2020-02-05 17:35:47 +08:00
linker.py Hardlink or copy scratch builds always 2020-08-07 18:00:19 +08:00
media_split.py Fix black complaint 2022-08-10 09:04:41 +02:00
metadata.py Remove useless debug message 2023-11-10 16:52:27 +02:00
module_util.py Fix module defaults and obsoletes validation 2022-06-10 11:35:26 +00:00
multilib_dnf.py Format code base with black 2020-02-05 17:35:47 +08:00
multilib_yum.py Format code base with black 2020-02-05 17:35:47 +08:00
notifier.py Fix the wrong working directory for the progress_notification script 2022-03-01 11:25:06 +00:00
pathmatch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
paths.py Add module obsoletes feature 2022-01-12 12:51:37 +01:00
profiler.py profiler: Flush stdout before printing 2022-08-29 05:57:14 +00:00
runroot.py Merge branch 'master' into a8_updated 2022-11-07 23:38:38 +02:00
util.py Add support for not having koji volume mounted locally 2023-11-10 16:55:19 +02:00