From 53af76b0e765f17ded36a13a9661ea26e1cc76e1 Mon Sep 17 00:00:00 2001 From: root sagunt Date: Mon, 1 Jul 2013 08:08:46 +0000 Subject: [PATCH] DEVINF-383: add correct version number (with epoch) to cidb --- debian_build.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/debian_build.py b/debian_build.py index 0daa6c9..5c8ccde 100755 --- a/debian_build.py +++ b/debian_build.py @@ -601,9 +601,10 @@ if __name__ == '__main__': try: create_dput_cfg() # strip epoch - if ":" in version: - version = version.split(":", 1)[1] - changes_file = os.path.join(ENV['WORKSPACE'], '../build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version)) + dpkg_build_version = version + if ":" in dpkg_build_version: + dpkg_build_version = dpkg_build_version.split(":", 1)[1] + changes_file = os.path.join(ENV['WORKSPACE'], '../build-area/result/', '%s_%s_amd64.changes' % (pkg_name, dpkg_build_version)) # display changes file fh = open(changes_file, 'r') logger.info('%s' % (fh.read())) -- 2.39.5