From: Holger Levsen Date: Mon, 19 Sep 2011 08:39:15 +0000 (+0200) Subject: deal with epochs X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=960345d4854e0ac41724b4ad3215030129e8d620;p=profitbricks%2Fjenkins-build-scripts.git deal with epochs --- diff --git a/debian_build.py b/debian_build.py index b940e7b..1f38caf 100755 --- a/debian_build.py +++ b/debian_build.py @@ -489,11 +489,15 @@ if __name__ == '__main__': try: create_dput_cfg() changes_file = os.path.join(GIT_TARGET_WORKSPACE, 'build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version)) - dput_package_upload(changes_file) - + # strip epoch + if ":" in changes_file: + changes_file = changes_file.split(":", 1)[1] + # display changes file fh = open(changes_file, 'r') logger.info('%s' % (fh.read())) fh.close() + # upload + dput_package_upload(changes_file) exit_ok() except Exception, error: logger.exception(error)