From ff27f81abcbe126a3c0e3cf6eb4d162cc54a5785 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Fri, 28 Jun 2013 11:23:27 +0200 Subject: [PATCH] debian_build: DEVINF-383: epoch must be kept but needs quoting --- debian_build.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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), ) ) -- 2.39.5