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

Francois Gouget fgouget at codeweavers.com
Thu Oct 18 08:24:30 CDT 2012


This simplifies the initial configuration a little bit.
---
 testbot/bin/build/Reconfig.pl |    5 +++++
 1 file changed, 5 insertions(+)

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);
-- 
1.7.10.4




More information about the wine-patches mailing list