changes = process.communicate()[0]
if process.returncode == 0:
logger.debug('%s succeeded.' % command)
- else:
- logger.warn('%s failed.' % command)
- figlet('Legacy upload failed')
- exit_error()
- (head, tail) = os.path.splitext(changes_file)
- legacy_changes_file = os.path.abspath(head) + '_alexandria' + tail
- filehandle = open(legacy_changes_file, 'w')
- filehandle.write(changes)
- filehandle.close()
- dput_obj.configure()
- dput_obj.upload(legacy_changes_file)
+ (head, tail) = os.path.splitext(changes_file)
+ legacy_changes_file = os.path.abspath(head) + '_alexandria' + tail
+ filehandle = open(legacy_changes_file, 'w')
+ filehandle.write(changes)
+ filehandle.close()
- figlet('Legacy upload OK')
+ dput_obj.configure()
+ dput_obj.upload(legacy_changes_file)
+ figlet('Legacy upload OK')
+ else:
+ logger.warn('%s failed.' % command)
+ figlet('Legacy upload failed')
except Exception as error:
logger.error('Legacy upload failed. See above for details.', exc_info=error)
figlet('Legacy upload failed')
- exit_error()
# .. define the time of completion
BUILD_END = datetime.datetime.now()