debian/bin/gencontrol.py: Only allow [a-z_] in substitution.

svn path=/trunk/kernel/source/linux-2.6/; revision=3773
This commit is contained in:
Bastian Blank 2005-08-09 06:38:56 +00:00
parent 2b2561fd32
commit d543590473
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ def process_real_tree(in_entry, changelog, vars):
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'])