[elbe-devel] [PATCH v2 1/4] elbepack: aptpkgutils: simplify pkg filename computation
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Fri Jun 28 13:52:17 CEST 2024
The package object already knows its filename,
drop the custom logic.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/aptpkgutils.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/elbepack/aptpkgutils.py b/elbepack/aptpkgutils.py
index 098be7d01554..ec9ab5d19f9a 100644
--- a/elbepack/aptpkgutils.py
+++ b/elbepack/aptpkgutils.py
@@ -258,8 +258,7 @@ class APTPackage(PackageBase):
if pkg.installed:
arch = pkg.installed.architecture
- self.installed_deb = pkg.name + '_' + iver.replace(':', '%3a') + \
- '_' + arch + '.deb'
+ self.installed_deb = os.path.basename(pkg.installed.filename)
elif pkg.candidate:
arch = pkg.candidate.architecture
self.installed_deb = None
--
2.45.2
More information about the elbe-devel
mailing list