From: Mathias Klette Date: Fri, 28 Jun 2013 09:23:27 +0000 (+0200) Subject: debian_build: DEVINF-383: epoch must be kept but needs quoting X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=ff27f81abcbe126a3c0e3cf6eb4d162cc54a5785;p=profitbricks%2Fjenkins-build-scripts.git debian_build: DEVINF-383: epoch must be kept but needs quoting --- diff --git a/debian_build.py b/debian_build.py index cedce1c..487827d 100755 --- a/debian_build.py +++ b/debian_build.py @@ -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), ) )