]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: reset new_version upon auto-increment packages
authorMathias Klette <mathias.klette@profitbricks.com>
Wed, 26 Jun 2013 10:47:35 +0000 (12:47 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Wed, 26 Jun 2013 10:47:35 +0000 (12:47 +0200)
debian_build.py

index 1bb9b7527ba0dd384e8b72838bd76e5f2733dddf..cedce1ced10a6cf1425716086dd45436317e7190 100755 (executable)
@@ -396,7 +396,8 @@ if __name__ == '__main__':
 
             cl = changelog.Changelog()
             cl.parse_changelog(open('debian/changelog'))
-            new_tag = cl.full_version.replace('~', '_').replace(':', ',')
+            new_version = cl.full_version
+            new_tag = new_version.replace('~', '_').replace(':', ',')
         except Exception as error:
             logger.error('Autoincrement failed. Standard error returned:\n\n%s\n' % error.stderr, exc_info=error)
             exit_error()