Skip to content
Snippets Groups Projects
Commit efedbd92 authored by Christian Marangi's avatar Christian Marangi Committed by Timo Teräs
Browse files

database: always use CSUM HEX for scriptdb tar entry


Always use CSUM in HEX for scriptdb tar entry.

Currently we use HEX for MD5 CSUM and base64 for SHA1 CSUM. This is
problematic for the scripts.tar as in base64 the "/" char is allowed.
This makes the tar think the file is placed in a dedicated directory
causing inconsistent files in scripts.tar making it problematic if
someone wants to handle scripts manually by accessing the file in the
.tar

Fix this by introducing apk_blob_push_csum_hex that always use HEX for
CSUM blob.

Pulling CSUM in HEX format is already supported and it's done by using
the X prefix instead of the current Q, hence this won't cause any
regression since both format are supported by the apk_blob_pull_csum
function.

Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
parent 6be5dd70
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment