logger.debug('%s succeeded.' % command)
else:
logger.warn('%s failed.' % command)
- figlet('apt01 upload failed')
+ figlet('repo01 upload failed')
return False
(head, tail) = os.path.splitext(changes_file)
- new_changes_file = head + '_apt01' + tail
+ new_changes_file = head + '_repo01' + tail
filehandle = open(new_changes_file, 'w')
filehandle.write(changes)
filehandle.close()
success = subprocess.call(cmd) == 0
if success:
logger.debug('%s succeeded.' % command)
- figlet('apt01 upload OK')
+ figlet('repo01 upload OK')
else:
logger.warn('%s failed.' % command)
- figlet('apt01 upload failed')
+ figlet('repo01 upload failed')
except Exception as error:
- logger.warning("Upload to http://apt01.pb.local failed. "
+ logger.warning("Upload to http://repo.pb.local failed. "
"See above for details.", exc_info=error)
- figlet('apt01 upload failed')
+ figlet('repo01 upload failed')
success = False
return success
pb_suite = 'master-{dist}'.format(dist=curr_dist)
reprepro_base = '/srv/pb-{dist}'.format(dist=curr_dist)
apt_dist = curr_dist
- apt_target = "apt01-debian"
+ apt_target = "repo01-debian"
# replace valid debian version chars that are invalid for git tagging
new_tag = curr_version.replace('~', '_').replace(':', ',')
pb_suite = 'develop-{dist}'.format(dist=curr_dist)
reprepro_base = '/srv/pb-{dist}'.format(dist=curr_dist)
apt_dist = curr_dist + '-dev'
- apt_target = "apt01-debian-dev"
+ apt_target = "repo01-debian-dev"
# reset actions
# .. always include successful build packages into CIDB
if curr_dist == 'squeeze':
new_version = version_substitution(logger, pattern, curr_commit)
reprepro_base = '/srv/dev-{dist}'.format(dist=curr_dist)
apt_dist = curr_dist + "-" + local_branch.replace("/", "-")
- apt_target = "apt01-debian-dev"
+ apt_target = "repo01-debian-dev"
else:
logger.error('Don\'t know how to handle branch "{branch}".'.format(
))
fh.close()
- # upload to new apt01 archive
+ # upload to new repo01 archive
if not upload_to_apt_repository(apt_target, apt_dist, changes_file, logger):
exit_error()