From d347ca7606cfa045d3f8a8e9cc58da21504bfea2 Mon Sep 17 00:00:00 2001 From: "bhearsum%mozilla.com" Date: Thu, 26 Aug 2010 13:32:51 +0000 Subject: [PATCH] bug 589400: two small fixes to talos harness - check for existence of dir before trying to create it. r=anodelman, patch=tnikkel git-svn-id: svn://10.0.0.236/trunk@261106 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/testing/performance/talos/ffsetup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/testing/performance/talos/ffsetup.py b/mozilla/testing/performance/talos/ffsetup.py index 8e6ad2d1d79..3374281c025 100644 --- a/mozilla/testing/performance/talos/ffsetup.py +++ b/mozilla/testing/performance/talos/ffsetup.py @@ -63,7 +63,8 @@ def zip_extractall(zipfile, rootdir): """Python 2.4 compatibility instead of ZipFile.extractall.""" for name in zipfile.namelist(): if name.endswith('/'): - os.makedirs(os.path.join(rootdir, name)) + if not os.path.exists(os.path.join(rootdir, name)): + os.makedirs(os.path.join(rootdir, name)) else: destfile = os.path.join(rootdir, name) destdir = os.path.dirname(destfile)