index_v1: restore nativecode field

This got removed with commit f0eedc3ade
which results in issues with clients using index v1.

These clients may end up offering the wrong arch for the device.

Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
This commit is contained in:
Alexander Martinz
2026-03-12 18:21:35 +01:00
parent 534fe8009e
commit 1cd849f3df

View File

@@ -1038,6 +1038,9 @@ def make_v1(apps, packages, repodir, repodict, requestsdict, signer_fingerprints
package['apkName'] = file_d['name']
package['hash'] = file_d['sha256']
package['hashType'] = 'sha256'
nativecode = package['manifest'].get('nativecode', list())
if nativecode:
package['nativecode'] = nativecode
package['size'] = file_d['size']
signer = package['manifest'].get('signer', dict()).get('sha256', list())
if signer: