richard: server/kolabconf/lib/Kolab Conf.pm,1.21,1.22
cvs at kolab.org
cvs at kolab.org
Tue Sep 9 22:33:54 CEST 2008
Author: richard
Update of /kolabrepository/server/kolabconf/lib/Kolab
In directory doto:/tmp/cvs-serv7041/lib/Kolab
Modified Files:
Conf.pm
Log Message:
updated to improve readability, by renaming confusing variables.
A reference to a config file is called a template, while the templates are
called keys. This makes it hard to read.
Index: Conf.pm
===================================================================
RCS file: /kolabrepository/server/kolabconf/lib/Kolab/Conf.pm,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- Conf.pm 8 Sep 2008 19:28:00 -0000 1.21
+++ Conf.pm 9 Sep 2008 20:33:52 -0000 1.22
@@ -739,11 +739,13 @@
Kolab::log('T', 'Loading meta-template data', KOLAB_DEBUG );
loadMetaTemplates( $templatedir, \%templates, \%permissions, \%ownership, \%runonchange, \%commentchar );
- foreach $key (keys %templates) {
- my $tpl = $templates{$key};
- #print STDOUT "Rebuilding $key => $templates{$key}\n";
- build($key, $tpl, $ownership{$tpl}, $permissions{$tpl}, $commentchar{$tpl});
- }
+ my $cfg;
+ my $tpl;
+ foreach $tpl (keys %templates) {
+ $cfg = $templates{$tpl};
+ #print STDOUT "Rebuilding $tpl => $cfg\n";
+ build($tpl, $cfg, $ownership{$cfg}, $permissions{$cfg}, $commentchar{$cfg});
+ }
buildPostfixTransportMap;
buildPostfixVirtualMap;
More information about the commits
mailing list