[Pkg-mono-svn-commits] rev 613 - xsp-snapshot/trunk/debian/official

Pablo Fischer pabl0-guest@haydn.debian.org
Mon, 19 Apr 2004 20:53:48 -0600


Author: pabl0-guest
Date: 2004-04-19 20:53:46 -0600 (Mon, 19 Apr 2004)
New Revision: 613

Modified:
   xsp-snapshot/trunk/debian/official/mono-server-update.conf
   xsp-snapshot/trunk/debian/official/mono-xsp-update.conf
Log:
Fixed a bug in the update scripts: Sometimes the user doesn't reads the 
README of the package, so sometimes the user will add their hosts to the 
main configuration file (like /etc/xsp/mono-xsp-hosts.conf) with no dirs 
in conf.d, so, to prevent 'two' wrong configurations we should 'clean up' 
the main configuration file and THEN start with a new one.



Modified: xsp-snapshot/trunk/debian/official/mono-server-update.conf
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-server-update.conf	2004-04-18 19:04:43 UTC (rev 612)
+++ xsp-snapshot/trunk/debian/official/mono-server-update.conf	2004-04-20 02:53:46 UTC (rev 613)
@@ -82,6 +82,10 @@
     my @host_dirs = sort (grep { -d "$monoserver_confd/$_" } readdir(DIR));
     closedir(DIR);
 
+    #to verify that the cfg file is new.. we should create a new one
+    system("rm -Rf $monoserver_hostfile");
+    system("touch $monoserver_hostfile");
+
     #How many dirs?
     if($#host_dirs ne "0") {
 	foreach my $dir (@host_dirs) {

Modified: xsp-snapshot/trunk/debian/official/mono-xsp-update.conf
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-xsp-update.conf	2004-04-18 19:04:43 UTC (rev 612)
+++ xsp-snapshot/trunk/debian/official/mono-xsp-update.conf	2004-04-20 02:53:46 UTC (rev 613)
@@ -80,6 +80,10 @@
     opendir(DIR, $xsp_confd);
     my @host_dirs = sort (grep { -d "$xsp_confd/$_" } readdir(DIR));
     closedir(DIR);
+    
+    #to verify that the cfg file is new.. we should create a new one
+    system("rm -Rf $xsp_hostfile");
+    system("touch $xsp_hostfile");
 
     #How many dirs?
     if($#host_dirs ne "0") {
@@ -102,7 +106,7 @@
 		}
 	    }
 	}
-    }
+    }	    
 }
 
 sub write_tempxsphostfile {