From: Holger Levsen Date: Thu, 6 Sep 2012 16:34:51 +0000 (+0200) Subject: use better variable names X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=28531e87c1f6c983bfba592b25803c15c9a0c937;p=profitbricks%2Fjenkins-build-scripts.git use better variable names --- diff --git a/debian_build.py b/debian_build.py index 75f7967..63ac666 100755 --- a/debian_build.py +++ b/debian_build.py @@ -470,11 +470,11 @@ if __name__ == '__main__': subprocess.check_call(cmd) # let me see the first two changelog entries: - counter=0 + line_counter = 0 for line in fileinput.input('debian/changelog'): if line.startswith(' --'): - counter+=1 - if counter<3: + line_counter += 1 + if line_counter < 3: print('debian/changelog: %s' %(line.strip())) # set pb_suite which GitBuildPackage() will turn into PB_SUITE