saip-tool: Fix TAR display for implicit TAR

Until Change-Id Ifba1048e3000829d54769b0420f5134e2f9b04e1 the TAR
output was working for implicit tar.  With said commit we fixed it
for explicit tar but broke implicit tar.

With this commit it works for both implicit and explicit TAR.

Change-Id: I76133b0e02996a138257f3fba5ceb0d2fc6fad80
This commit is contained in:
Harald Welte
2024-07-20 10:01:27 +02:00
parent 0c022944ff
commit c60944a7de

View File

@@ -202,7 +202,8 @@ def do_info(pes: ProfileElementSequence, opts):
adf = rfm.decoded.get('adfRFMAccess', None) adf = rfm.decoded.get('adfRFMAccess', None)
if adf: if adf:
print("\tADF AID: %s" % b2h(adf['adfAID'])) print("\tADF AID: %s" % b2h(adf['adfAID']))
for tar in rfm.decoded['tarList']: tar_list = rfm.decoded.get('tarList', [inst_aid[-3:]])
for tar in tar_list:
print("\tTAR: %s" % b2h(tar)) print("\tTAR: %s" % b2h(tar))
def do_extract_apps(pes:ProfileElementSequence, opts): def do_extract_apps(pes:ProfileElementSequence, opts):