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 <niels@thykier.net>
debian
Niels Thykier 9 years ago
parent 3c0dcf0de3
commit 93757b5650

@ -291,6 +291,9 @@ def write_heidi(filename, sources_t, packages_t,
pkgv = pkg.version pkgv = pkg.version
pkgarch = pkg.architecture or 'all' pkgarch = pkg.architecture or 'all'
pkgsec = pkg.section or 'faux' 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 \ if pkg.source_version and pkgarch == 'all' and \
pkg.source_version != sources_t[pkg.source][VERSION]: pkg.source_version != sources_t[pkg.source][VERSION]:
# when architectures are marked as "fucked", their binary # 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] src = sources_t[src_name]
srcv = src[VERSION] srcv = src[VERSION]
srcsec = src[SECTION] or 'unknown' 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)) f.write('%s %s source %s\n' % (src_name, srcv, srcsec))

Loading…
Cancel
Save