Add cache support for jhbuild
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Mar 2014 14:44:10 +0000 (14:44 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Mar 2014 14:44:10 +0000 (14:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=130588

Patch by Jozsef Berta <jberta.u-szeged@partner.samsung.com> on 2014-03-21
Reviewed by Csaba Osztrogon√°c.

* jhbuild/jhbuildrc_common.py:
(init): Jhbuild can now save the dependencies locally, if the JHBUILD_MIRROR environment variable is set.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@166061 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/jhbuild/jhbuildrc_common.py

index 0eae00c..b6abb89 100644 (file)
@@ -1,3 +1,13 @@
+2014-03-21  Jozsef Berta  <jberta.u-szeged@partner.samsung.com>
+
+        Add cache support for jhbuild
+        https://bugs.webkit.org/show_bug.cgi?id=130588
+
+        Reviewed by Csaba Osztrogon√°c.
+
+        * jhbuild/jhbuildrc_common.py:
+        (init): Jhbuild can now save the dependencies locally, if the JHBUILD_MIRROR environment variable is set.
+
 2014-03-21  Xabier Rodriguez Calvar  <calvaris@igalia.com>
 
         [CMake] Add support for MAX_CPU_LOAD translated to -l in ninja and make
index 7343ae8..00d635b 100644 (file)
@@ -82,3 +82,7 @@ def init(jhbuildrc_globals, platform):
     prefix = jhbuildrc_globals['prefix']
     addpath('CMAKE_PREFIX_PATH', prefix)
     addpath('CMAKE_LIBRARY_PATH', os.path.join(prefix, _library_dir))
+
+    if 'JHBUILD_MIRROR' in os.environ:
+        jhbuildrc_globals['dvcs_mirror_dir'] = os.environ['JHBUILD_MIRROR']
+        jhbuildrc_globals['tarballdir'] = os.environ['JHBUILD_MIRROR']