From db6ccbf4387aec2384df8fc8c9a86ebe8a51c4d1 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Sun, 24 Jul 2011 08:44:05 +0000 Subject: [PATCH] Simplify (and fix) logic for assigning section "faux" to fake sources --- britney.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/britney.py b/britney.py index 927b856..912d50f 100755 --- a/britney.py +++ b/britney.py @@ -516,7 +516,7 @@ class Britney: sources[distribution][dpkg[SOURCE]][BINARIES].append(pkg + "/" + arch) # if the source package doesn't exist, create a fake one else: - sources[distribution][dpkg[SOURCE]] = [dpkg[SOURCEVER], None, [pkg + "/" + arch], None, True] + sources[distribution][dpkg[SOURCE]] = [dpkg[SOURCEVER], 'faux', [pkg + "/" + arch], None, True] # register virtual packages and real packages that provide them if dpkg[PROVIDES]: @@ -854,7 +854,7 @@ class Britney: for src_name in sorted(sources): src = sources[src_name] srcv = src[VERSION] - srcsec = src[FAKESRC] and 'faux' or src[SECTION] or 'unknown' + srcsec = src[SECTION] or 'unknown' f.write('%s %s source %s\n' % (src_name, srcv, srcsec)) f.close()