Skip to content

Commit

Permalink
auto merge of #5200 : mbrubeck/servo/cache-dir, r=larsbergstrom
Browse files Browse the repository at this point in the history
This will be set in servo/saltfs to prevent our buildbot builders from re-downloading the build tools for every build.

r? @larsbergstrom or @metajack or @Manishearth
  • Loading branch information
bors-servo committed Mar 19, 2015
2 parents e845695 + 4641640 commit 82f70c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/servo/command_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ def resolverelative(category, key):

# Handle missing/default items
self.config.setdefault("tools", {})
self.config["tools"].setdefault("cache-dir",
path.join(context.topdir, ".servo"))
default_cache_dir = os.environ.get("SERVO_CACHE_DIR",
path.join(context.topdir, ".servo"))
self.config["tools"].setdefault("cache-dir", default_cache_dir)
resolverelative("tools", "cache-dir")

self.config["tools"].setdefault("cargo-home-dir",
Expand Down

0 comments on commit 82f70c5

Please sign in to comment.