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 3693fc078b692b68
parent 3685 6be565850b18
child 3694 9dfb5519f20a
don't try to download traces if they are already there.
VERSION
wscript
     1.1 --- a/VERSION	Fri Sep 12 10:36:57 2008 -0700
     1.2 +++ b/VERSION	Sun Sep 14 11:39:58 2008 -0700
     1.3 @@ -1,1 +1,1 @@
     1.4 -3-dev
     1.5 +3.2-RC2-bis
     2.1 --- a/wscript	Fri Sep 12 10:36:57 2008 -0700
     2.2 +++ b/wscript	Sun Sep 14 11:39:58 2008 -0700
     2.3 @@ -842,7 +842,7 @@
     2.4              return 0
     2.5          else:
     2.6              if not os.path.exists(refTestDirName):
     2.7 -                print "Cannot locate reference traces"
     2.8 +                print "Cannot locate reference traces in " + refTestDirName
     2.9                  return 1
    2.10  
    2.11              shutil.rmtree("traces");
    2.12 @@ -929,11 +929,12 @@
    2.13              if result:
    2.14                  Params.fatal("Synchronizing reference traces using Mercurial failed.")
    2.15      else:
    2.16 -        traceball = dir_name + TRACEBALL_SUFFIX
    2.17 -        print "Retrieving " + traceball + " from web."
    2.18 -        urllib.urlretrieve(REGRESSION_TRACES_URL + traceball, traceball)
    2.19 -        os.system("tar -xjf %s -C .." % (traceball))
    2.20 -    print "Done."
    2.21 +        if not os.path.exists(dir_name):
    2.22 +            traceball = dir_name + TRACEBALL_SUFFIX
    2.23 +            print "Retrieving " + traceball + " from web."
    2.24 +            urllib.urlretrieve(REGRESSION_TRACES_URL + traceball, traceball)
    2.25 +            os.system("tar -xjf %s -C .." % (traceball))
    2.26 +            print "Done."
    2.27  
    2.28      if not os.path.exists(dir_name):
    2.29          print "Reference traces directory (%s) does not exist" % dir_name