Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only print source cache directory once

  • Loading branch information...
commit 8db080785698abf86bf2399d236b49d86d699bab 1 parent 7540982
@mhutch mhutch authored
Showing with 3 additions and 4 deletions.
  1. +0 −1  bockbuild/package.py
  2. +3 −3 bockbuild/profile.py
View
1  bockbuild/package.py
@@ -108,7 +108,6 @@ def sources_dir (self):
source_cache = os.getenv('BOCKBUILD_SOURCE_CACHE')
self._sources_dir = source_cache or os.path.realpath (os.path.join (self.package_dir(), "..", "cache"))
if not os.path.exists(self._sources_dir): os.mkdir (self._sources_dir)
- print "Source cache: " + self._sources_dir
return self._sources_dir
def package_dir (self):
View
6 bockbuild/profile.py
@@ -133,9 +133,9 @@ def build (self):
for k in self.env.get_names ():
log (1, '%s = %s' % (k, os.getenv (k)))
- if os.getenv('BOCKBUILD_SOURCE_CACHE') != None:
- k = 'BOCKBUILD_SOURCE_CACHE'
- log (1, '%s = %s' % (k, os.getenv (k)))
+ source_cache = os.getenv('BOCKBUILD_SOURCE_CACHE')
+ source_cache = source_cache or os.path.realpath (os.path.join (self.build_root, "..", "..", "..", "cache"))
+ log (1, 'Source cache: %s' % source_cache)
Package.profile = self
Please sign in to comment.
Something went wrong with that request. Please try again.