[elbe-devel] [PATCH v1] elbepack: aptpkgutils: expand XMLPackage
Eduard Krein
eduard.krein at linutronix.de
Wed Jul 3 15:29:30 CEST 2024
Expand XMLPackage with Origin containing Package origin,
codename and uri.
Signed-off-by: Eduard Krein <eduard.krein at linutronix.de>
---
elbepack/aptpkgutils.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/elbepack/aptpkgutils.py b/elbepack/aptpkgutils.py
index d4d99a2a..47609d0c 100644
--- a/elbepack/aptpkgutils.py
+++ b/elbepack/aptpkgutils.py
@@ -282,10 +282,16 @@ class XMLPackage(PackageBase):
if v is not None:
hashes[h] = v
+ origin = Origin(origin=node.et.get('release-origin'),
+ codename=node.et.get('release-name'),
+ uri=node.et.get('uri'),
+ site=None,
+ component=None)
+
PackageBase.__init__(self, node.et.text,
node.et.get('version'), None,
hashes, None,
node.et.get('prio'), None,
node.et.get('arch'), None,
INSTALLED, node.et.get('auto') == 'true',
- None)
+ origin)
--
2.39.2
More information about the elbe-devel
mailing list