[Mageia-sysadm] [663] - do not hardcode domain for packager regexp

root at mageia.org root at mageia.org
Thu Jan 6 00:39:33 CET 2011


Revision: 663
Author:   misc
Date:     2011-01-06 00:39:33 +0100 (Thu, 06 Jan 2011)
Log Message:
-----------
- do not hardcode domain for packager regexp

Modified Paths:
--------------
    puppet/modules/buildsystem/templates/submit-todo.conf

Modified: puppet/modules/buildsystem/templates/submit-todo.conf
===================================================================
--- puppet/modules/buildsystem/templates/submit-todo.conf	2011-01-05 23:38:24 UTC (rev 662)
+++ puppet/modules/buildsystem/templates/submit-todo.conf	2011-01-05 23:39:33 UTC (rev 663)
@@ -1,3 +1,7 @@
+<% 
+escaped_domain = domain.gsub('.','\.')
+%>
+
 home: <%= sched_home_dir %>
 
 # repository declaration
@@ -58,7 +62,7 @@
         options:
             tags:
                 release: '(mnb|mga)\d+'
-                packager: '<\S+ at mageia\.org>$'
+                packager: '<\S+@<%= escaped_domain %>>$'
                 distribution: '^Mageia'
                 vendor: '^Mageia.Org$'
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110106/66c90bf1/attachment.html>


More information about the Mageia-sysadm mailing list