[3/3] isar-sstate: show number of signature files on info

Message ID 20260922090930.2322146-3-felix.moessbauer@siemens.com
State New
Headers show
Series [1/3] isar-sstate: add well-known task for dpkg-source | expand

Commit Message

Felix Moessbauer Sept. 22, 2026, 9:09 a.m. UTC
We currently only dump the number of artifacts on info. However, this
results in some entries where the entry itself is printed but it states
0 entries. This happens when only signatures are available. As the
isar-sstate script anyways has explicit support for signatures, we just
print the number of them as well.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 scripts/isar-sstate | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/scripts/isar-sstate b/scripts/isar-sstate
index 130b73d1..aadbaeac 100755
--- a/scripts/isar-sstate
+++ b/scripts/isar-sstate
@@ -823,7 +823,8 @@  def sstate_info(target, verbose, filter, arch, **kwargs):
         print(f"Cache entries for {k}:")
         for pn in entries:
             artifacts = [f for f in all_files if f.pn == pn and f.task in key_task[k] and f.suffix in ['tgz', 'tar.zst']]
-            print(f"  - {pn}: {len(artifacts)} entries")
+            signatures = [f for f in all_files if f.pn == pn and f.task in key_task[k] and f.suffix in ['tgz.siginfo', 'tar.zst.siginfo']]
+            print(f"  - {pn}: {len(artifacts)} entries ({len(signatures)} signatures)")
     print("Other cache entries:")
     for pn in others:
         print(f"  - {pn}")