]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build: DEVINF-383: epoch must be kept but needs quoting
authorMathias Klette <mathias.klette@profitbricks.com>
Fri, 28 Jun 2013 09:23:27 +0000 (11:23 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Fri, 28 Jun 2013 09:23:27 +0000 (11:23 +0200)
debian_build.py

index cedce1ced10a6cf1425716086dd45436317e7190..487827dd701626a7bbfc3c87790eae5256bac301 100755 (executable)
@@ -12,6 +12,7 @@ import re
 import socket
 import subprocess
 import sys
+import urllib
 from ConfigParser import SafeConfigParser
 from pprint import pformat
 
@@ -570,17 +571,13 @@ export {gbp_env} FORCE_SHELL=TRUE
         figlet('Upload skipped')
     else:
         try:
-            # strip epoch
-            if ":" in new_version:
-                new_version = new_version.split(":", 1)[1]
-
             # construct path for changes file
             changes_file = os.path.join(
                 ENV['WORKSPACE'],
                 '../build-area/result/',
                 '{name}_{version}_amd64.changes'.format(
                     name=curr_name,
-                    version=new_version,
+                    version=urllib.quote(new_version),
                 )
             )