Francois Gouget : testbot/build: Also create the staging directory if it does not exist.

Alexandre Julliard julliard at winehq.org
Thu Oct 18 14:00:10 CDT 2012


Module: tools
Branch: master
Commit: 58537d5728a256502d72b99ed14ef4b43daa16ce
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=58537d5728a256502d72b99ed14ef4b43daa16ce

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Oct 18 15:24:30 2012 +0200

testbot/build: Also create the staging directory if it does not exist.

This simplifies the initial configuration a little bit.

---

 testbot/bin/build/Reconfig.pl |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/testbot/bin/build/Reconfig.pl b/testbot/bin/build/Reconfig.pl
index c3f8eb4..4661727 100755
--- a/testbot/bin/build/Reconfig.pl
+++ b/testbot/bin/build/Reconfig.pl
@@ -121,6 +121,11 @@ delete $ENV{ENV};
 # Start with clean logfile
 unlink("$LogDir/Reconfig.log");
 
+if (! -d "$DataDir/staging" and ! mkdir "$DataDir/staging")
+{
+    LogMsg "Unable to create '$DataDir/staging': $!\n";
+    exit(1);
+}
 if (! GitPull())
 {
   exit(1);




More information about the wine-cvs mailing list