]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fixup: strip newline when recreating (master) changelogs. (Closes: #DEVINF-350)
authorHolger Levsen <holger@layer-acht.org>
Wed, 27 Mar 2013 12:42:05 +0000 (13:42 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 27 Mar 2013 12:42:05 +0000 (13:42 +0100)
debian_build.py

index 9ca8baac7b45ccfe21538e53e89557a12a599145..e6b2f47aa745dcdcaf272c88ebed07d2eeeaca46 100755 (executable)
@@ -471,7 +471,7 @@ if __name__ == '__main__':
           line_counter += 1
           if line_counter == 3:
               print '  * Generated by jenkins build of %s' % git_helper.git_get_commit_id()
-          print line.strip()
+          print line.rstrip('\n')
 
     # we need to commit here else git-buildpackage will use the existing debian/changelog...
     # TODO: Later we should investigate why "--ignore-new" does not work!
@@ -486,7 +486,7 @@ if __name__ == '__main__':
         if line.startswith(' --'):
             line_counter += 1
         if line_counter <= 2:
-            print('debian/changelog: %s' %(line.strip()))
+            print('debian/changelog: %s' %(line.rstrip('\n')))
 
     # let's test if we can tag this build, so we can fail early if we cannot tag it later
     if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/'):