r3779 - branches/kernel/source/linux-2.6/release-2.6.12-2/debian/bin

Bastian Blank waldi at costa.debian.org
Tue Aug 9 08:50:18 UTC 2005


Author: waldi
Date: 2005-08-09 08:50:17 +0000 (Tue, 09 Aug 2005)
New Revision: 3779

Modified:
   branches/kernel/source/linux-2.6/release-2.6.12-2/debian/bin/gencontrol.py
Log:
debian/bin/gencontrol.py: Only allow [a-z_] in substitution.


Modified: branches/kernel/source/linux-2.6/release-2.6.12-2/debian/bin/gencontrol.py
===================================================================
--- branches/kernel/source/linux-2.6/release-2.6.12-2/debian/bin/gencontrol.py	2005-08-09 08:49:55 UTC (rev 3778)
+++ branches/kernel/source/linux-2.6/release-2.6.12-2/debian/bin/gencontrol.py	2005-08-09 08:50:17 UTC (rev 3779)
@@ -244,7 +244,7 @@
 def substitute(s, vars):
     def subst(match):
         return vars[match.group(1)]
-    return re.sub(r'@([^@]+)@', subst, s)
+    return re.sub(r'@([a-z_]+)@', subst, s)
 
 def vars_changelog(vars, changelog):
     version = parse_version(changelog[0]['Version'])




More information about the Kernel-svn-changes mailing list