From: Robin Wittler Date: Tue, 9 Aug 2011 16:32:21 +0000 (+0200) Subject: add debug msg X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=32a6eaed95a9b47ebad6ebc4d7bf97e027d0443f;p=profitbricks%2Fjenkins-build-scripts.git add debug msg --- 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')