From a4a7aece2436774c486888208183bda337f30c98 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 10 Sep 2019 22:12:44 +0800 Subject: [PATCH] extra: fix bug --- extra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra.py b/extra.py index 5e53c95..743ccb6 100644 --- a/extra.py +++ b/extra.py @@ -33,7 +33,7 @@ def gen_pkglist(pkgconfigs, pkgvers, pkgerrs): ps = ('type', 'cleanbuild', 'timeout') hps = ('prebuild', 'postbuild', 'update', 'failure') dps = {p:getattr(pc, p, None) for p in ps} - dhps = {p:'\n'.join(str(getattr(pc, p, None))) for p in hps} + dhps = {p:'\n'.join([str(cmd) for cmd in getattr(pc, p, None)]) for p in hps} # additional package details ves = {'version': pkgvers.get(pc.dirname, None), 'errors': pkgerrs.get(pc.dirname, None)} pkgall[pc.dirname] = {**dps, **dhps, **ves}