aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gmail.com>2009-06-30 15:46:38 +0200
committerStanislav Ochotnicky <sochotnicky@gmail.com>2009-07-01 12:55:57 +0200
commitc1641e7862121b7d707722a501c542d51b035ef3 (patch)
tree036ad48697121c62d326e283d40041ebb1a65e9c /src/tinderbox/__init__.py
parentLogging system in place (diff)
downloadcollagen-c1641e7862121b7d707722a501c542d51b035ef3.tar.gz
collagen-c1641e7862121b7d707722a501c542d51b035ef3.tar.bz2
collagen-c1641e7862121b7d707722a501c542d51b035ef3.zip
Fix indent level for package compilation by group
Diffstat (limited to 'src/tinderbox/__init__.py')
-rw-r--r--src/tinderbox/__init__.py43
1 files changed, 21 insertions, 22 deletions
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