Rename builds.txt to winetest.builds

Dimitrie O. Paun dimi at intelliware.ca
Thu Apr 29 11:32:27 CDT 2004


This patch is in preparation for my next big patch.
The builds file should be per-program published.

Please also rename builds.txt to winetest.builds.

This file should be shared by service.cgi and dissect.
Looking at them I see that in winetest/winetest.conf, 
	$root = "/home/laxdragon/wine/tools/winetest";
	$builds = "$root/winetest.builds";
but on the other hand in service.cgi we have
	$path_to_builds_txt="/home/winehq/opt/winetest/builds.txt";
What gives?

ChangeLog
    Dimitrie O. Paun <dpaun at rogers.com>
    Rename builds.txt to winetest.builds. Cleanup.

-- 
Dimi.
-------------- next part --------------
Index: winetest/README
===================================================================
RCS file: /home/wine/tools/winetest/README,v
retrieving revision 1.1
diff -u -r1.1 README
--- winetest/README	19 Feb 2004 22:00:34 -0000	1.1
+++ winetest/README	29 Apr 2004 16:26:18 -0000
@@ -50,7 +50,7 @@
 
 These files are referenced by the index.html files created by gather.
 
-* builds.txt
+* winetest.builds
 
 The file to have $builds point to.
 
Index: winetest/service.cgi
===================================================================
RCS file: /home/wine/tools/winetest/service.cgi,v
retrieving revision 1.13
diff -u -r1.13 service.cgi
--- winetest/service.cgi	23 Apr 2004 21:28:02 -0000	1.13
+++ winetest/service.cgi	29 Apr 2004 16:26:18 -0000
@@ -42,7 +42,7 @@
 
 $hour_we_do_build = "5";     # hour, such as 2 or 17, in localtime, rounded up
 $path_to_test_directories="/home/winehq/opt/winetest/";
-$path_to_builds_txt="/home/winehq/opt/winetest/builds.txt";
+$path_to_builds_txt="/home/winehq/opt/winetest/winetest.builds";
 $path_to_lynx="/usr/bin/lynx";
 
 &main;
@@ -72,14 +72,12 @@
         $cookie_to_save = &get_new_cookie;
 
         # Cookies should never be the same.  Some day we could return an error 
-        if ($cookie_to_save eq $cookie_current) {
-            print "OK\n";
-        } 
-        else {
+        if ($cookie_to_save ne $cookie_current) {
             save_new_cookie($cookie_to_save);
             &save_new_url;
 	    &update_builds_txt;
         }
+        print "OK\n";
         exit;
     }
 
@@ -168,8 +166,6 @@
 	or ( debug("Can't open $path_to_cookie for writing.") && die );
     print COOKIE_FH "$cookie";
     close(COOKIE_FH);
-
-    print "OK\n";
 }
 
 sub save_new_url {
Index: winetest/winetest.conf
===================================================================
RCS file: /home/wine/tools/winetest/winetest.conf,v
retrieving revision 1.2
diff -u -r1.2 winetest.conf
--- winetest/winetest.conf	15 Mar 2004 18:31:01 -0000	1.2
+++ winetest/winetest.conf	29 Apr 2004 16:26:18 -0000
@@ -1,7 +1,7 @@
 # Hey Emacs! This is a -*-cperl-*- file!
 
 $root = "/home/laxdragon/wine/tools/winetest";
-$builds = "$root/builds.txt";
+$builds = "$root/winetest.builds";
 # These two below should be on the same filesystem
 $queuedir = "$root/queue";
 $datadir  = "$root/data";


More information about the wine-patches mailing list