public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/1] fix(isar-sstate): correctly account number of bytes cleaned
@ 2026-11-19  9:42 'Felix Moessbauer' via isar-users
  0 siblings, 0 replies; only message in thread
From: 'Felix Moessbauer' via isar-users @ 2026-11-19  9:42 UTC (permalink / raw)
  To: isar-users; +Cc: tobias.schaffner, Felix Moessbauer

isar-sstate clean currently reports twice the amount of data that is
actually cleaned: it builds the siginfo set correctly, then mistakenly
applies filters to all_files instead of that set. As a result, old
archives are counted in both deletion lists and their sizes are added
twice.

Fixes: 33ca03c7 ("isar-sstate: add architecture filtering support")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 scripts/isar-sstate | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/isar-sstate b/scripts/isar-sstate
index 36a91134..9064def5 100755
--- a/scripts/isar-sstate
+++ b/scripts/isar-sstate
@@ -766,7 +766,7 @@ def sstate_clean(target, max_age, max_sig_age, verbose, filter, arch, **kwargs):
     archive_files = [f for f in all_files if f.suffix in ['tgz', 'tar.zst']]
     siginfo_files = [f for f in all_files if f.suffix in ['tgz.siginfo', 'tar.zst.siginfo']]
     archive_files = apply_filters(archive_files, filter, arch)
-    siginfo_files = apply_filters(all_files, filter, arch)
+    siginfo_files = apply_filters(siginfo_files, filter, arch)
 
     del_archive_files = [f for f in archive_files if f.age >= max_age_seconds]
     del_archive_hashes = [f.hash for f in del_archive_files]
-- 
2.55.0

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20261119094234.3630112-1-felix.moessbauer%40siemens.com.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19  9:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19  9:42 [PATCH 1/1] fix(isar-sstate): correctly account number of bytes cleaned 'Felix Moessbauer' via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox