dpkg_build_version = dpkg_build_version.split(":", 1)[1]
# construct path for changes file
- changes_file = os.path.join(
- ENV['WORKSPACE'],
- '../build-area/result/',
- '{name}_{version}_amd64.changes'.format(
- name=curr_name,
- version=dpkg_build_version,
- )
- )
-
- # display changes file
- fh = open(changes_file, 'r')
- logger.info('Content of {file}\n{content}'.format(
- file=changes_file,
- content=fh.read(),
- ))
- fh.close()
+ changes_file = builder.changes_file
# upload to Debian archive
if not upload_to_apt_repository(apt_target, changes_file, logger):
]
return result
+ @property
+ def changes_file(self):
+ changes_filename = os.path.splitext(self.dsc_file)[0] + '_' + self.arch + '.changes'
+ return os.path.join(self.dsc_dir, changes_filename)
+
def build(self):
'''
TODO