From 08ea9c57b66d83ef61069c998f98cf861cf1d4a7 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 19 Sep 2011 10:47:32 +0200 Subject: [PATCH] just strip the epoch... --- debian_build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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())) -- 2.39.5