[Xfce4-commits] <midori:master> Check that test base exists before removing tree

Christian Dywan noreply at xfce.org
Mon Nov 12 22:10:02 CET 2012


Updating branch refs/heads/master
         to 4e47039b0cf19025693f2efeb416ae63b09f0985 (commit)
       from f615825aa54c8b44ece188701d945b8a2576df73 (commit)

commit 4e47039b0cf19025693f2efeb416ae63b09f0985
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Mon Nov 12 20:52:30 2012 +0100

    Check that test base exists before removing tree

 wscript |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/wscript b/wscript
index 2a2a035..0bb29f0 100644
--- a/wscript
+++ b/wscript
@@ -548,7 +548,8 @@ def shutdown ():
     elif Options.commands['check']:
         import tempfile, shutil
         base = os.path.join (tempfile.gettempdir (), 'midori-test', '%s')
-        shutil.rmtree (base % '')
+        if os.path.exists (base):
+            shutil.rmtree (base % '')
         for x in ['XDG_CONFIG_HOME', 'XDG_CACHE_HOME', 'XDG_DATA_HOME', 'TMPDIR']:
             os.environ[x] = (base % x).lower ()
             Utils.check_dir (os.environ[x])


More information about the Xfce4-commits mailing list