diff options
author | Steven Knight <knight@baldmt.com> | 2009-04-30 15:27:26 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-04-30 15:27:26 (GMT) |
commit | e5aec4367e7392df5a748fd5c28de9f70860d3b4 (patch) | |
tree | c3c3351a0826ef753bf97b9b6c5492d984691e5c /SConstruct | |
parent | ba4fc5a2d238127e04548a1e9f1f3c210b6d1a36 (diff) | |
download | SCons-e5aec4367e7392df5a748fd5c28de9f70860d3b4.zip SCons-e5aec4367e7392df5a748fd5c28de9f70860d3b4.tar.gz SCons-e5aec4367e7392df5a748fd5c28de9f70860d3b4.tar.bz2 |
Only try to use hg or svn for packaging in checked-out trees.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,8 +76,8 @@ dh_builddeb = whereis('dh_builddeb') fakeroot = whereis('fakeroot') gzip = whereis('gzip') rpmbuild = whereis('rpmbuild') or whereis('rpm') -hg = whereis('hg') -svn = whereis('svn') +hg = os.path.exists('.hg') and whereis('hg') +svn = os.path.exists('.svn') and whereis('svn') unzip = whereis('unzip') zip = whereis('zip') |