[elbe-devel] [PATCH v2 3/3] elbepack: support SHA512 for package checksums
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Jun 18 12:04:48 CEST 2024
Some repositories also provide SHA1 hashes.
Expose them for increased compatibility and security.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/aptpkgutils.py | 1 +
elbepack/schema/dbsfed.xsd | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/elbepack/aptpkgutils.py b/elbepack/aptpkgutils.py
index fbe1ecf87013..ee72532c3ae1 100644
--- a/elbepack/aptpkgutils.py
+++ b/elbepack/aptpkgutils.py
@@ -32,6 +32,7 @@ _apt_hash_mapping = {
'MD5Sum': 'md5',
'SHA1': 'sha1',
'SHA256': 'sha256',
+ 'SHA512': 'sha512',
}
diff --git a/elbepack/schema/dbsfed.xsd b/elbepack/schema/dbsfed.xsd
index 6f6b2490d754..f9b919c6e99b 100644
--- a/elbepack/schema/dbsfed.xsd
+++ b/elbepack/schema/dbsfed.xsd
@@ -2993,6 +2993,13 @@ SPDX-FileCopyrightText: Linutronix GmbH
</documentation>
</annotation>
</attribute>
+ <attribute name="sha512" type="string" use="optional">
+ <annotation>
+ <documentation>
+ sha512 sum of the package.
+ </documentation>
+ </annotation>
+ </attribute>
<attribute name="prio" type="string" use="optional">
<annotation>
<documentation>
--
2.45.2
More information about the elbe-devel
mailing list