From: Holger Levsen Date: Thu, 1 Sep 2011 15:16:07 +0000 (+0200) Subject: loop correctly X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=4f0727a58e0e1fc43e2ac5265c6b321e5fdfa4d0;p=profitbricks%2Fjenkins-build-scripts.git loop correctly --- diff --git a/build.py b/build.py index a485180..c84d540 100755 --- a/build.py +++ b/build.py @@ -403,8 +403,10 @@ if __name__ == '__main__': ) if not ret: build_log=os.path.join('../build-area/result/', '%s_%s_amd64.build' % (pkg_name, version)) - for line in read_file(build_log): + fh = open(build_log, 'r') + for line in fh.readlines(): logger.info(line) + fh.close() #logger.debug(os.listdir('./')) #logger.debug(os.listdir('../')) create_dput_cfg()