From 37b6536cfd3c1b13e2fb8586ad5f09ed08f0f614 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 26 Mar 2016 18:07:37 +0000 Subject: [PATCH] Remove two redundant ifs duplicating an earlier if Signed-off-by: Niels Thykier --- britney_util.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/britney_util.py b/britney_util.py index b99c388..2e366ec 100644 --- a/britney_util.py +++ b/britney_util.py @@ -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")