[Xfce4-commits] <midori:master> Check if the file exists before deleting vapi

Christian Dywan noreply at xfce.org
Sat Oct 6 20:00:02 CEST 2012


Updating branch refs/heads/master
         to 8fa5a100e9cf9680cd8d73bc3a538d8023d7e363 (commit)
       from b49aba5ed21a0ae2dae8f9abf8ceb141980bd58a (commit)

commit 8fa5a100e9cf9680cd8d73bc3a538d8023d7e363
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Oct 6 19:58:33 2012 +0200

    Check if the file exists before deleting vapi

 midori/wscript_build |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/midori/wscript_build b/midori/wscript_build
index cc506cc..957cc2c 100644
--- a/midori/wscript_build
+++ b/midori/wscript_build
@@ -13,7 +13,9 @@ libs = 'M UNIQUE LIBSOUP GMODULE GTHREAD LIBIDN GIO GTK SQLITE ' \
 
 if Options.commands['build'] or Options.commands['check']:
     blddir = str (bld.bldnode)[6:] # dir:// + absolute path
-    os.remove (blddir  + '/default/midori/midori-core.vapi')
+    duplicate_vapi = blddir + '/default/midori/midori-core.vapi'
+    if os.path.exists (duplicate_vapi):
+      os.remove (duplicate_vapi)
 
 if progressive:
     obj = bld.new_task_gen ('cc', 'staticlib')


More information about the Xfce4-commits mailing list