From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org, "Daniel P. Berrangé" <berrange@redhat.com>
Cc: "Philippe Mathieu-Daudé" <philmd@mailo.com>, qemu-trivial@nongnu.org
Subject: [PATCH] scripts/clean_functional_cache: Remove also .stamp files
Date: Fri, 14 Aug 2026 14:26:43 +0200 [thread overview]
Message-ID: <20260814122643.312129-1-thuth@redhat.com> (raw)
The cache cleanup script already successfully removes the assets
that are unused since more than 6 months, but it forgot to delete
the corresponding timestamp files, too.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
scripts/clean_functional_cache.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/clean_functional_cache.py b/scripts/clean_functional_cache.py
index c3370ffbb87..1ff98c7606d 100755
--- a/scripts/clean_functional_cache.py
+++ b/scripts/clean_functional_cache.py
@@ -28,8 +28,9 @@
if len(file.name) != 64:
continue
+ stampfile = file.with_suffix(".stamp")
try:
- timestamp = int(file.with_suffix(".stamp").read_text())
+ timestamp = int(stampfile.read_text())
except FileNotFoundError:
# Assume it's an old file that was already in the cache before we
# added the code for evicting stale assets. Use the release date
@@ -43,3 +44,4 @@
print(f"Removing {cache_dir}/{file.name}.")
file.chmod(stat.S_IWRITE)
file.unlink()
+ stampfile.unlink()
--
2.55.0
next reply other threads:[~2026-08-14 12:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-14 12:26 Thomas Huth [this message]
2026-08-14 12:34 ` [PATCH] scripts/clean_functional_cache: Remove also .stamp files Daniel P. Berrangé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260814122643.312129-1-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=berrange@redhat.com \
--cc=philmd@mailo.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.