From: Holger Levsen Date: Mon, 19 Sep 2011 08:47:32 +0000 (+0200) Subject: just strip the epoch... X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=08ea9c57b66d83ef61069c998f98cf861cf1d4a7;p=profitbricks%2Fjenkins-build-scripts.git just strip the epoch... --- diff --git a/debian_build.py b/debian_build.py index 1f38caf..3fba7f4 100755 --- a/debian_build.py +++ b/debian_build.py @@ -488,10 +488,10 @@ if __name__ == '__main__': # else: try: create_dput_cfg() - changes_file = os.path.join(GIT_TARGET_WORKSPACE, 'build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version)) # strip epoch - if ":" in changes_file: - changes_file = changes_file.split(":", 1)[1] + if ":" in version: + version = version.split(":", 1)[1] + changes_file = os.path.join(GIT_TARGET_WORKSPACE, 'build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version)) # display changes file fh = open(changes_file, 'r') logger.info('%s' % (fh.read()))