[gnome-continuous] Fix builddir support for non-builddir modules



commit c44715024ae332b2c9195cfa63c83405a04ce0cd
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Dec 1 13:51:45 2017 +0000

    Fix builddir support for non-builddir modules
    
    Once again: thanks, Python.

 src/ostree-build-compile-one |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/ostree-build-compile-one b/src/ostree-build-compile-one
index f52f748..3c87c0d 100755
--- a/src/ostree-build-compile-one
+++ b/src/ostree-build-compile-one
@@ -181,9 +181,10 @@ def main(args):
             log("Found no-builddir Build API variable; copying source tree to _build")
             if os.path.isdir('_build'):
                 shutil.rmtree('_build')
-                shutil.copytree('.', '_build', symlinks=True,
-                                ignore=shutil.ignore_patterns('_build'))
-                use_builddir = False
+
+            shutil.copytree('.', '_build', symlinks=True,
+                            ignore=shutil.ignore_patterns('_build'))
+            use_builddir = False
     
     if use_builddir:
         log("Using build directory %r" % (builddir, ))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]