From 93757b5650e5544d83f153a2a4d0e0a2a41e3646 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 22 May 2016 05:47:51 +0000 Subject: [PATCH] Omit faux packages from the HeidiResult file We do not need these in the HeidiResult file, so we might as well stop emitting them. Note that faux packages will still appear in other output (like the "uninst" lists/caches). Signed-off-by: Niels Thykier --- britney_util.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/britney_util.py b/britney_util.py index 1b758f2..2472ed6 100644 --- a/britney_util.py +++ b/britney_util.py @@ -291,6 +291,9 @@ def write_heidi(filename, sources_t, packages_t, pkgv = pkg.version pkgarch = pkg.architecture or 'all' pkgsec = pkg.section or 'faux' + if pkgsec == 'faux' or pkgsec.endswith('/faux'): + # Faux package; not really a part of testing + continue if pkg.source_version and pkgarch == 'all' and \ pkg.source_version != sources_t[pkg.source][VERSION]: # when architectures are marked as "fucked", their binary @@ -307,6 +310,9 @@ def write_heidi(filename, sources_t, packages_t, src = sources_t[src_name] srcv = src[VERSION] srcsec = src[SECTION] or 'unknown' + if srcsec == 'faux' or srcsec.endswith('/faux'): + # Faux package; not really a part of testing + continue f.write('%s %s source %s\n' % (src_name, srcv, srcsec))