mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-13 04:11:07 +00:00
Remove two redundant ifs duplicating an earlier if
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
2b5c48ad2f
commit
37b6536cfd
@ -429,7 +429,8 @@ def write_controlfiles(sources, packages, suite, basedir):
|
||||
output = "Package: %s\n" % pkg
|
||||
bin_data = binaries[pkg]
|
||||
for key, k in key_pairs:
|
||||
if not bin_data[key]: continue
|
||||
if not bin_data[key]:
|
||||
continue
|
||||
if key == SOURCE:
|
||||
src = bin_data[SOURCE]
|
||||
if sources_s[src][MAINTAINER]:
|
||||
@ -446,11 +447,9 @@ def write_controlfiles(sources, packages, suite, basedir):
|
||||
source = src
|
||||
output += (k + ": " + source + "\n")
|
||||
elif key == PROVIDES:
|
||||
if bin_data[key]:
|
||||
output += (k + ": " + ", ".join(relation_atom_to_string(p) for p in bin_data[key]) + "\n")
|
||||
output += (k + ": " + ", ".join(relation_atom_to_string(p) for p in bin_data[key]) + "\n")
|
||||
elif key == ESSENTIAL:
|
||||
if bin_data[key]:
|
||||
output += (k + ": " + " yes\n")
|
||||
output += (k + ": " + " yes\n")
|
||||
else:
|
||||
output += (k + ": " + bin_data[key] + "\n")
|
||||
f.write(output + "\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user