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()))