From 32a6eaed95a9b47ebad6ebc4d7bf97e027d0443f Mon Sep 17 00:00:00 2001 From: Robin Wittler Date: Tue, 9 Aug 2011 18:32:21 +0200 Subject: [PATCH] add debug msg --- build.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 9f574c1..8152b18 100755 --- a/build.py +++ b/build.py @@ -273,11 +273,12 @@ if __name__ == '__main__': pb_version = fh.read().rstrip() fh.close() - fh2 = open('debian/control') - for line in fh2: + fh = open('debian/control') + logger.debug(fh) + for line in fh: if line.startswith('Source:'): pkg_name = line.split(':')[-1].lstrip().rstrip() - fh2.close() + fh.close() if options.distribution in ('unstable', 'experimental'): daily_date = datetime.datetime.now().strftime('%Y%m%d-%H%M%S') -- 2.39.5