[elbe-devel] [PATCH 08/12] elbepack: virtapt: import primary_key for elbe check_updates command
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon Nov 18 15:45:25 CET 2024
From: Stefan Kempf <stefan at kempfsn.de>
[thomas: rebase, align with project conventions]
Signed-off-by: Stefan Kempf <stefan at kempfsn.de>
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/virtapt.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
index a1a21a790a029b82561475222828e7b930df749d..eb1ecd33a9285073e533cda8c9e3a553d16e3cbc 100644
--- a/elbepack/virtapt.py
+++ b/elbepack/virtapt.py
@@ -96,6 +96,11 @@ class VirtApt:
outfile.write(key)
def _import_keys(self):
+ mirror = self.xml.node('project/mirror')
+ if mirror and mirror.has('primary_host') and mirror.has('primary_key'):
+ key = strip_leading_whitespace_from_lines(mirror.text('primary_key'))
+ self.add_key(unarmor_openpgp_keyring(key), 'elbe-virtapt-primary-key.gpg')
+
if self.xml.has('project/mirror/url-list'):
# Should we use self.xml.prj.has("noauth")???
#
--
2.47.0
More information about the elbe-devel
mailing list