class HudsonUrl(urllib.FancyURLopener):
pass
-def logger_loud_error(msg):
- print '##########################################################################'
- print '##########################################################################'
- print '### ERROR ### ERROR ### ERROR ### ERROR ### ERROR ### ERROR ###'
- print '##########################################################################'
- print '##########################################################################'
+def logger_error(msg):
print msg
logger.error(msg)
- print '##########################################################################'
- print '##########################################################################'
- print '### ERROR ### ERROR ### ERROR ### ERROR ### ERROR ### ERROR ###'
- print '##########################################################################'
- print '##########################################################################'
def read_file(path):
try:
#if git_helper.git_clone_remote_repository(GIT_REPO_PATH, GIT_TARGET_DIR):
# logger.info('git clone was successfull')
#else:
- # logger_loud_error('git clone was not successfull')
+ # logger_error('git clone was not successfull')
# exit_error()
#atexit.register(remove_git_target_workspace)
GIT_UPSTREAM_BRANCH
)
else:
- logger_loud_error('Could not determine GIT_UPSTREAM_BRANCH')
+ logger_error('Could not determine GIT_UPSTREAM_BRANCH')
exit_error()
repo = git.repo.Repo()
)
ret = parse_changelog.wait()
if ret:
- logger_loud_error('%s was not successfull, return code was %s ' % (' '.join(cmd), ret))
+ logger_error('%s was not successfull, return code was %s ' % (' '.join(cmd), ret))
raise Exception(
'%s was not successfull, return code was %s ' % (' '.join(cmd), ret)
)
)
ret = grep_dctrl.wait()
if ret:
- logger_loud_error('%s was not successfull, return code was %s ' % (' '.join(cmd), ret))
+ logger_error('%s was not successfull, return code was %s ' % (' '.join(cmd), ret))
raise Exception(
'%s was not successfull, return code was %s ' % (' '.join(cmd), ret)
)
logger.info('Package distribution is %s' % (distribution))
if (options.distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates') and not distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates')):
- logger_loud_error('Distribution %s in debian/changelog did not match branch %s' % (distribution, options.distribution))
+ logger_error('Distribution %s in debian/changelog did not match branch %s' % (distribution, options.distribution))
raise Exception(
'Distribution %s in debian/changelog did not match branch %s' % (distribution, options.distribution)
)
subprocess.check_call(cmd)
# now handle gpb result
if ret:
- logger_loud_error(
+ logger_error(
'git-buildpackage returned non-zero. exitcode was: %s' % ret
)
exit_error()