From 4f0727a58e0e1fc43e2ac5265c6b321e5fdfa4d0 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 1 Sep 2011 17:16:07 +0200 Subject: [PATCH] loop correctly --- build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- 2.39.5