OPTIMIZED_GIT_CLONE controls the use of two features: a local git mirror
directory and an optimized move/copy of old build directories. Allow the
use of the local mirror, even if the optimized move/copy is not used.

To disable the local mirror, comment out the setting of OGIT_MIRROR_DIR,
as well as setting OPTIMIZED_GIT_CLONE False.

[YOCOT #10010]

Signed-off-by: Bill Randle <william.c.ran...@intel.com>
---
 lib/python2.7/site-packages/autobuilder/BuildSet.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/python2.7/site-packages/autobuilder/BuildSet.py 
b/lib/python2.7/site-packages/autobuilder/BuildSet.py
index 8c2208e..1418a8d 100644
--- a/lib/python2.7/site-packages/autobuilder/BuildSet.py
+++ b/lib/python2.7/site-packages/autobuilder/BuildSet.py
@@ -82,6 +82,8 @@ class BuildSet():
                                     method='barecopy'
                                     storedir=os.environ.get('OGIT_TRASH_DIR')
                                     mirrordir=os.environ.get('OGIT_MIRROR_DIR')
+                            elif os.environ.get('OGIT_MIRROR_DIR', None) != 
None:
+                                mirrordir=os.environ.get('OGIT_MIRROR_DIR')
                             if 'poky' in layername or 'oecore' in layername:
                                 workdir = 'build'
                             elif "eclipse-poky" in layername:
-- 
2.5.5

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to