Simplify (and fix) logic for assigning section "faux" to fake sources

master
Adam D. Barratt 13 years ago
parent a088234d3c
commit db6ccbf438

@ -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()

Loading…
Cancel
Save