[elbe-devel] [PATCH] pkgutils: print trace why python-apt failed

Manuel Traut manut at linutronix.de
Thu Jul 12 16:12:28 CEST 2018


the exception typically contains useful information

this can be transferred into a better human understandable message as
soon as we know which exceptions occure.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/pkgutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/pkgutils.py b/elbepack/pkgutils.py
index a300fb8c..81b112da 100644
--- a/elbepack/pkgutils.py
+++ b/elbepack/pkgutils.py
@@ -167,7 +167,7 @@ def get_uri(prj, defs, arch, target_pkg, incl_deps=False):
             suite = prj.text("suite")
             v = get_virtaptcache(arch, suite, apt_sources, "", apt_keys)
         except Exception as e:
-            print("python-apt failed, using fallback code")
+            print("python-apt failed, using fallback code: %s" % e)
             return get_uri_nonvirtapt(apt_sources, target_pkg, arch)
 
         ret = v.get_uri(suite, arch, target_pkg, incl_deps)
-- 
2.18.0




More information about the elbe-devel mailing list