gunnar: server/perl-kolab/Kolab-Conf Conf.pm.in,1.8,1.9

cvs at kolab.org cvs at kolab.org
Mon Dec 4 14:31:50 CET 2006


Author: gunnar

Update of /kolabrepository/server/perl-kolab/Kolab-Conf
In directory doto:/tmp/cvs-serv1405/Kolab-Conf

Modified Files:
	Conf.pm.in 
Log Message:
	* Kolab-Conf/Conf.pm.in (build): Only print "No configuration
	variable corresponding to `$1' exists" in case we are NOT skipping
	the section.


Index: Conf.pm.in
===================================================================
RCS file: /kolabrepository/server/perl-kolab/Kolab-Conf/Conf.pm.in,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Conf.pm.in	18 May 2006 02:53:28 -0000	1.8
+++ Conf.pm.in	4 Dec 2006 13:31:48 -0000	1.9
@@ -297,7 +297,8 @@
 		s/\@{3}([^\s\@]+?)(\|.+?)?\@{3}/$val/;
 		last if ( $val eq "\@\@\@$attr\@\@\@" ); # prevent endless loop
 	      } else {
-		Kolab::log('T', "No configuration variable corresponding to `$1' exists", KOLAB_WARN);
+		# Only warn the user in case we are not skipping the section
+		($skip == 0) && Kolab::log('T', "No configuration variable corresponding to `$1' exists", KOLAB_WARN);
 		s/\@{3}([^\s\@]+?)\@{3}//;
 	      }
 	    }





More information about the commits mailing list