Fix SparseTestHack to work without subversion installed
g0dil [Tue, 19 Jan 2010 09:05:42 +0000 (09:05 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1546 270642c3-0616-0410-b53a-bc976706d245

site_scons/SparseTestHack.py

index c8681d0..319ee28 100644 (file)
@@ -137,7 +137,7 @@ def build(env, accept_unknown_tests=False, verbose=False):
 def findSCMChanges(env):
 
     def scmchanges(dir):
-        if os.popen("cd %s; svnversion" % dir.abspath).read().strip() == "exported":
+        if os.popen("cd %s; svnversion" % dir.abspath).read().strip() in ("","exported"):
             return [ dir.Entry(x)
                      for x in os.popen("cd %s; git ls-files --modified" 
                                        % dir.abspath).read().strip().split("\n") ]