From 9e462e836c9943073caf36d67fcad9de0ad8eee4 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Thu, 30 Apr 2009 15:27:26 +0000 Subject: [PATCH] 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 --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') -- 2.26.2