]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: seperate branch and dist with dash in experimental packages
authorMathias Klette <mathias.klette@profitbricks.com>
Mon, 13 May 2013 14:03:00 +0000 (16:03 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Mon, 13 May 2013 14:03:00 +0000 (16:03 +0200)
debian_build.py

index 64b4e53f77ec67a9fea04184b7ff8a72b3976c2c..08b40bb8afdf9831e6506a0d98566d1bd46a1bbc 100755 (executable)
@@ -227,7 +227,10 @@ if __name__ == '__main__':
             # reprepro uses dynamic distributions based on the distribution
             # value given in the package. to not interferre with experimental
             # squeeze package, we need to include the distribution here.
-            new_dist = 'dev-' + ENV['GIT_BRANCH'].replace("/","-") + ENV['DISTRIBUTION']
+            new_dist = 'dev-{branch}-{dist}'.format(
+                branch = ENV['GIT_BRANCH'].replace("/","-"),
+                dist = ENV['DISTRIBUTION'],
+                )
             dput_obj.contents.update({
                 'incoming': '/srv/dev-repository/incoming/wheezy',
                 })