[elbe-devel] [PATCH 2/3] Change pkglist for command genlicence

Olivier Dion dion at linutronix.de
Fri Feb 21 20:03:45 CET 2020


Use the get_licence_pkgs instead to filter out purgeg packages.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/commands/genlicence.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/genlicence.py b/elbepack/commands/genlicence.py
index fa8d4c21..f3d47688 100644
--- a/elbepack/commands/genlicence.py
+++ b/elbepack/commands/genlicence.py
@@ -50,7 +50,7 @@ def run_command(argv):
         else:
             f = io.open('licence.txt', "w+", encoding='utf-8')
 
-        pkglist = project.get_rpcaptcache().get_installed_pkgs()
+        pkglist = project.get_rpcaptcache().get_licence_pkgs()
         pkgnames = [p.name for p in pkglist]
 
         project.buildenv.rfs.write_licenses(f, pkgnames, opt.xml)
-- 
2.25.1




More information about the elbe-devel mailing list