From 83cf40093a2d5d36432088aaca832b6c65c264b2 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 1 Sep 2011 16:56:58 +0200 Subject: [PATCH] output build log in case of build failures --- build.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 9ee5e73..88a8834 100755 --- a/build.py +++ b/build.py @@ -401,8 +401,11 @@ if __name__ == '__main__': 'This is the output of git-buildpackage: \n%s' %(ret) ) - logger.debug(os.listdir('./')) - logger.debug(os.listdir('../')) + if not ret: + build_log=os.path.join('../build-area/result/', '%s_%s_amd64.build' % (pkg_name, version)) + logger.info(read_file(build_log)) + #logger.debug(os.listdir('./')) + #logger.debug(os.listdir('../')) create_dput_cfg() changes_file = '%s_%s_amd64.changes' % (pkg_name, version) dput_package_upload(os.path.join(GIT_TARGET_WORKSPACE, 'build-area/result/', changes_file)) -- 2.39.5