mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-31 12:21:30 +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
|
output = "Package: %s\n" % pkg
|
||||||
bin_data = binaries[pkg]
|
bin_data = binaries[pkg]
|
||||||
for key, k in key_pairs:
|
for key, k in key_pairs:
|
||||||
if not bin_data[key]: continue
|
if not bin_data[key]:
|
||||||
|
continue
|
||||||
if key == SOURCE:
|
if key == SOURCE:
|
||||||
src = bin_data[SOURCE]
|
src = bin_data[SOURCE]
|
||||||
if sources_s[src][MAINTAINER]:
|
if sources_s[src][MAINTAINER]:
|
||||||
@ -446,11 +447,9 @@ def write_controlfiles(sources, packages, suite, basedir):
|
|||||||
source = src
|
source = src
|
||||||
output += (k + ": " + source + "\n")
|
output += (k + ": " + source + "\n")
|
||||||
elif key == PROVIDES:
|
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:
|
elif key == ESSENTIAL:
|
||||||
if bin_data[key]:
|
output += (k + ": " + " yes\n")
|
||||||
output += (k + ": " + " yes\n")
|
|
||||||
else:
|
else:
|
||||||
output += (k + ": " + bin_data[key] + "\n")
|
output += (k + ": " + bin_data[key] + "\n")
|
||||||
f.write(output + "\n")
|
f.write(output + "\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user