[Mageia-sysadm] [807] - reuse the more elegant array for check_syntax

root at mageia.org root at mageia.org
Sun Jan 16 14:15:31 CET 2011


Revision: 807
Author:   misc
Date:     2011-01-16 14:15:31 +0100 (Sun, 16 Jan 2011)
Log Message:
-----------
- reuse the more elegant array for check_syntax

Modified Paths:
--------------
    puppet/modules/subversion/manifests/init.pp

Modified: puppet/modules/subversion/manifests/init.pp
===================================================================
--- puppet/modules/subversion/manifests/init.pp	2011-01-16 13:15:29 UTC (rev 806)
+++ puppet/modules/subversion/manifests/init.pp	2011-01-16 13:15:31 UTC (rev 807)
@@ -132,9 +132,7 @@
                        $cia_module = 'default',
 		       $cia_ignore_author = '',
 		       $no_binary = false,
-                       $syntax_check1 = '',
-                       $syntax_check2 = '',
-                       $syntax_check3 = '',
+                       $syntax_check = '',
                        $extract_dir = '') {
         # check permissions
         # http://svnbook.red-bean.com/nightly/fr/svn.serverconfig.multimethod.html
@@ -222,21 +220,11 @@
 	pre_commit_link { "$name/hooks/pre-commit.d/no_root_commit":
 	    scriptname => 'no_root_commit',
 	}
-	if $syntax_check1 {
-	    pre_commit_link { "$name/hooks/pre-commit.d/${syntax_check1}":
-	        scriptname => $syntax_check1,
+	if $syntax_check {
+	    pre_commit_link { "$name/hooks/pre-commit.d/$syntax_check":
+		scriptname => $syntax_check,
 	    }
-	}
-	if $syntax_check2 {
-	    pre_commit_link { "$name/hooks/pre-commit.d/${syntax_check2}":
-		scriptname => $syntax_check2,
-	    }
-	}
-	if $syntax_check3 {
-	    pre_commit_link { "$name/hooks/pre-commit.d/${syntax_check3}":
-		scriptname => $syntax_check3,
-	    }
-	}
+        }
     }
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110116/24c90d0b/attachment-0001.html>


More information about the Mageia-sysadm mailing list