[elbe-devel] [PATCH v2 2/3] elbepack: support SHA1 for package checksums
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Jun 18 12:04:47 CEST 2024
Some repositories also provide SHA1 hashes.
Expose them for increased compatibility.
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 90fc2c7a8a7c..fbe1ecf87013 100644
--- a/elbepack/aptpkgutils.py
+++ b/elbepack/aptpkgutils.py
@@ -30,6 +30,7 @@ statestring = {
# Mapping from apt_pkg.HashString to elbe xml
_apt_hash_mapping = {
'MD5Sum': 'md5',
+ 'SHA1': 'sha1',
'SHA256': 'sha256',
}
diff --git a/elbepack/schema/dbsfed.xsd b/elbepack/schema/dbsfed.xsd
index e6a3a5fe5ae2..6f6b2490d754 100644
--- a/elbepack/schema/dbsfed.xsd
+++ b/elbepack/schema/dbsfed.xsd
@@ -2979,6 +2979,13 @@ SPDX-FileCopyrightText: Linutronix GmbH
</documentation>
</annotation>
</attribute>
+ <attribute name="sha1" type="string" use="optional">
+ <annotation>
+ <documentation>
+ sha1 sum of the package.
+ </documentation>
+ </annotation>
+ </attribute>
<attribute name="sha256" type="string" use="optional">
<annotation>
<documentation>
--
2.45.2
More information about the elbe-devel
mailing list