From 960345d4854e0ac41724b4ad3215030129e8d620 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 19 Sep 2011 10:39:15 +0200 Subject: [PATCH] deal with epochs --- debian_build.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.39.5