[Pkg-mono-svn-commits] rev 1034 - xsp/trunk/debian
Pablo Fischer
pabl0-guest@haydn.debian.org
Wed, 16 Jun 2004 15:47:34 -0600
Author: pabl0-guest
Date: 2004-06-16 15:47:31 -0600 (Wed, 16 Jun 2004)
New Revision: 1034
Modified:
xsp/trunk/debian/mono-server-update.conf
xsp/trunk/debian/mono-xsp-update.conf
Log:
Fixed a bug that was restarting apache as stupid.
And also a bug when reading a file that sometimes does not exists.
Modified: xsp/trunk/debian/mono-server-update.conf
===================================================================
--- xsp/trunk/debian/mono-server-update.conf 2004-06-16 21:19:00 UTC (rev 1033)
+++ xsp/trunk/debian/mono-server-update.conf 2004-06-16 21:47:31 UTC (rev 1034)
@@ -71,8 +71,7 @@
#Read the default file
&read_default_file;
#Orig md5
-#$orig_md5 = &get_md5;
-$orig_md5 = "je";
+$orig_md5 = &get_md5;
#Read directory..
&read_dir;
if(-f "$monoserver_hostfile.tmp") {
@@ -114,18 +113,20 @@
sub read_default_file {
- open(DEFAULT_FILE, "$default_file");
- while(my $line = <DEFAULT_FILE>) {
- if($line =~ /start_apache/i) {
- if($line =~ /true/i) {
- $restart = "yes";
+ if(-e $default_file) {
+ open(DEFAULT_FILE, "$default_file");
+ while(my $line = <DEFAULT_FILE>) {
+ if($line =~ /start_apache/i) {
+ if($line =~ /true/i) {
+ $restart = "yes";
+ }
+ else {
+ $restart = "no";
+ }
}
- else {
- $restart = "no";
- }
}
+ close(DEFAULT_FILE);
}
- close(DEFAULT_FILE);
}
Modified: xsp/trunk/debian/mono-xsp-update.conf
===================================================================
--- xsp/trunk/debian/mono-xsp-update.conf 2004-06-16 21:19:00 UTC (rev 1033)
+++ xsp/trunk/debian/mono-xsp-update.conf 2004-06-16 21:47:31 UTC (rev 1034)
@@ -99,18 +99,20 @@
sub read_default_file {
- open(DEFAULT_FILE, "$default_file");
- while(my $line = <DEFAULT_FILE>) {
- if($line =~ /start_boot/i) {
- if($line =~ /true/i) {
- $restart = "yes";
+ if(-e $default_file) {
+ open(DEFAULT_FILE, "$default_file");
+ while(my $line = <DEFAULT_FILE>) {
+ if($line =~ /start_boot/i) {
+ if($line =~ /true/i) {
+ $restart = "yes";
+ }
+ else {
+ $restart = "no";
+ }
}
- else {
- $restart = "no";
- }
}
+ close(DEFAULT_FILE);
}
- close(DEFAULT_FILE);
}