abuild: explicitly sort apk content
This commit is contained in:
parent
660f793d6d
commit
4f5b0a14bd
@ -1607,13 +1607,15 @@ create_apks() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# normalize timestamps
|
# normalize timestamps
|
||||||
find . -exec touch -h -d "@$SOURCE_DATE_EPOCH" {} +
|
find "$@" -exec touch -h -d "@$SOURCE_DATE_EPOCH" {} +
|
||||||
|
|
||||||
tar --xattrs \
|
# explicitly sort package content
|
||||||
|
find "$@" -print0 | LC_ALL=C sort -z | tar --xattrs \
|
||||||
--format=posix \
|
--format=posix \
|
||||||
--pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0 \
|
--pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0 \
|
||||||
--mtime="@${SOURCE_DATE_EPOCH}" \
|
--mtime="@${SOURCE_DATE_EPOCH}" \
|
||||||
-f - -c "$@" | abuild-tar --hash | $gzip -n -9 >"$dir"/data.tar.gz
|
--no-recursion --null -T - \
|
||||||
|
-f - -c | abuild-tar --hash | $gzip -n -9 >"$dir"/data.tar.gz
|
||||||
|
|
||||||
msg "Create checksum..."
|
msg "Create checksum..."
|
||||||
# append the hash for data.tar.gz
|
# append the hash for data.tar.gz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user