| Message ID | 20251113122806.16769-3-peter.marko@siemens.com |
|---|---|
| State | New |
| Headers | show |
| Series | go tests backports | expand |
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index 3dc3672210b..588c74bb443 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py @@ -148,7 +148,8 @@ def get_extra_sdkinfo(sstate_dir): extra_info['filesizes'] = {} for root, _, files in os.walk(sstate_dir): for fn in files: - if fn.endswith('.tgz'): + # Note that this makes an assumption about the sstate filenames + if '.tar.' in fn and not fn.endswith('.siginfo'): fsize = int(math.ceil(float(os.path.getsize(os.path.join(root, fn))) / 1024)) task = fn.rsplit(':',1)[1].split('_',1)[1].split(',')[0] origtotal = extra_info['tasksizes'].get(task, 0)