don't try to download traces if they are already there.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sun, 14 Sep 2008 11:39:58 -0700
changeset 3693 fc078b692b68
parent 3685 6be565850b18
child 3694 9dfb5519f20a
don't try to download traces if they are already there.
VERSION
wscript
--- a/VERSION	Fri Sep 12 10:36:57 2008 -0700
+++ b/VERSION	Sun Sep 14 11:39:58 2008 -0700
@@ -1,1 +1,1 @@
-3-dev
+3.2-RC2-bis
--- a/wscript	Fri Sep 12 10:36:57 2008 -0700
+++ b/wscript	Sun Sep 14 11:39:58 2008 -0700
@@ -842,7 +842,7 @@
             return 0
         else:
             if not os.path.exists(refTestDirName):
-                print "Cannot locate reference traces"
+                print "Cannot locate reference traces in " + refTestDirName
                 return 1
 
             shutil.rmtree("traces");
@@ -929,11 +929,12 @@
             if result:
                 Params.fatal("Synchronizing reference traces using Mercurial failed.")
     else:
-        traceball = dir_name + TRACEBALL_SUFFIX
-        print "Retrieving " + traceball + " from web."
-        urllib.urlretrieve(REGRESSION_TRACES_URL + traceball, traceball)
-        os.system("tar -xjf %s -C .." % (traceball))
-    print "Done."
+        if not os.path.exists(dir_name):
+            traceball = dir_name + TRACEBALL_SUFFIX
+            print "Retrieving " + traceball + " from web."
+            urllib.urlretrieve(REGRESSION_TRACES_URL + traceball, traceball)
+            os.system("tar -xjf %s -C .." % (traceball))
+            print "Done."
 
     if not os.path.exists(dir_name):
         print "Reference traces directory (%s) does not exist" % dir_name