BUGFIX: correct indentation on that build debugging cset.
authorChris Larson <clarson@kergoth.com>
Thu, 27 May 2004 05:15:57 +0000 (05:15 +0000)
committerChris Larson <clarson@kergoth.com>
Thu, 27 May 2004 05:15:57 +0000 (05:15 +0000)
bin/oe/build.py

index 9022d52..92ac8f7 100644 (file)
@@ -176,16 +176,16 @@ def exec_func_shell(func, d):
     # open logs
     si = file('/dev/null', 'r')
     try:
-    if data.getVar("OEDEBUG", d):
-        so = os.popen("tee \"%s\"" % logfile, "w")
-        se = so
-    else:
-        so = file(logfile, 'w')
-        se = so
+        if data.getVar("OEDEBUG", d):
+            so = os.popen("tee \"%s\"" % logfile, "w")
+        else:
+            so = file(logfile, 'w')
     except OSError, e:
-        oe.error("opening log files: %s" % e)
+        oe.error("opening log file: %s" % e)
         pass
 
+    se = so
+
     # dup the existing fds so we dont lose them
     osi = [os.dup(sys.stdin.fileno()), sys.stdin.fileno()]
     oso = [os.dup(sys.stdout.fileno()), sys.stdout.fileno()]