[elbe-devel] [PATCH] elbepack: aptpkgutils: use absolute origin reference

Eduard Krein eduard.krein at linutronix.de
Thu Jun 20 15:23:07 CEST 2024


Change the origin string from archive to codename
because archive is a relative attribute while codename
is a absolute one. For example: stable -> bookworm

Signed-off-by: Eduard Krein <eduard.krein at linutronix.de>
---
 elbepack/aptpkgutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/aptpkgutils.py b/elbepack/aptpkgutils.py
index 23892608..c4b7b591 100644
--- a/elbepack/aptpkgutils.py
+++ b/elbepack/aptpkgutils.py
@@ -92,7 +92,7 @@ def pkgstate(pkg):
 def pkgorigin(pkg):
     if pkg.installed:
         o = pkg.installed.origins[0]
-        origin = f'{o.site} {o.archive} {o.component}'
+        origin = f'{o.site} {o.codename} {o.component}'
     else:
         origin = None
 
-- 
2.39.2



More information about the elbe-devel mailing list