Permalink
Browse files

Only print source cache directory once

  • Loading branch information...
1 parent 7540982 commit 8db080785698abf86bf2399d236b49d86d699bab @mhutch mhutch committed Apr 5, 2013
Showing with 3 additions and 4 deletions.
  1. +0 −1 bockbuild/package.py
  2. +3 −3 bockbuild/profile.py
View
@@ -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
@@ -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

0 comments on commit 8db0807

Please sign in to comment.