From: stevenknight Date: Thu, 30 Apr 2009 15:27:26 +0000 (+0000) Subject: Only try to use hg or svn for packaging in checked-out trees. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9e462e836c9943073caf36d67fcad9de0ad8eee4;p=scons.git Only try to use hg or svn for packaging in checked-out trees. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4166 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/SConstruct b/SConstruct index 138549f8..1c0ebbed 100644 --- a/SConstruct +++ b/SConstruct @@ -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')