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