From c1641e7862121b7d707722a501c542d51b035ef3 Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky Date: Tue, 30 Jun 2009 15:46:38 +0200 Subject: Fix indent level for package compilation by group --- src/tinderbox/__init__.py | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to 'src/tinderbox/__init__.py') diff --git a/src/tinderbox/__init__.py b/src/tinderbox/__init__.py index c1b4f87..2de594c 100644 --- a/src/tinderbox/__init__.py +++ b/src/tinderbox/__init__.py @@ -140,30 +140,29 @@ class Tinderbox(object): settings = self.settings for group in dep_groups: # TODO install deps group by group - pass - ret = portage.doebuild(ebuild, "merge", portage.root, settings, debug = False, tree="porttree") - if ret != 0: - # error installing, grab logs - try: - logfile = open("%s/build.log" % settings["T"], "r") - except IOError, (errno, strerror): - print "Unable to read build logs: %d: %s" % (errno, strerror) - log.warning("Unable to read build logs %d: %s" % (errno, strerror)) - else: - package.build_log = logfile.read() - logfile.close() - del logfile - try: - envfile = open("%s/environment" % settings["T"],"r") - except IOError, (errno, strerror): - print "Unable to read build environment: %d: %s" % (errno, strerror) - log.warning("Unable to read build environment %d: %s" % (errno, strerror)) - else: - package.build_env = envfile.read() - envfile.close() - del envfile + ret = portage.doebuild(ebuild, "merge", portage.root, settings, debug = False, tree="porttree") + if ret != 0: + # error installing, grab logs + try: + logfile = open("%s/build.log" % settings["T"], "r") + except IOError, (errno, strerror): + print "Unable to read build logs: %d: %s" % (errno, strerror) + log.warning("Unable to read build logs %d: %s" % (errno, strerror)) + else: + package.build_log = logfile.read() + logfile.close() + del logfile + try: + envfile = open("%s/environment" % settings["T"],"r") + except IOError, (errno, strerror): + print "Unable to read build environment: %d: %s" % (errno, strerror) + log.warning("Unable to read build environment %d: %s" % (errno, strerror)) + else: + package.build_env = envfile.read() + envfile.close() + del envfile # save package/logs in config.CHROOT_LOGS, parent can get them crom config.WORK_CHROOT/config.CHROOT_LOGS -- cgit v1.2.3-65-gdbad