]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
use better variable names
authorHolger Levsen <holger@layer-acht.org>
Thu, 6 Sep 2012 16:34:51 +0000 (18:34 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 6 Sep 2012 16:34:51 +0000 (18:34 +0200)
debian_build.py

index 75f7967c5ecf214884fa496c059b6e3c3b03f96f..63ac66638a35110f9f158a03c1a316051cc1a53e 100755 (executable)
@@ -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