[elbe-devel] [PATCH] pkgutils: print trace why python-apt failed
John Ogness
john.ogness at linutronix.de
Fri Jul 20 13:09:23 CEST 2018
On 2018-07-12, Manuel Traut <manut at linutronix.de> wrote:
> 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>
Reviewed-by: John Ogness <john.ogness 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)
More information about the elbe-devel
mailing list