summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2014-07-21 23:43:56 +0200
committerOlav Vitters <olav@vitters.nl>2014-07-21 23:43:56 +0200
commit90e408af16858fc11b3ef53c028d4e128f64a8f3 (patch)
tree9ad8f9fe5d73d640422b321dcfc6b89d036e4546
parent1509ef64c6afe9001cd6bbdcb279743ce7ca7a37 (diff)
downloadmgagnome-90e408af16858fc11b3ef53c028d4e128f64a8f3.tar
mgagnome-90e408af16858fc11b3ef53c028d4e128f64a8f3.tar.gz
mgagnome-90e408af16858fc11b3ef53c028d4e128f64a8f3.tar.bz2
mgagnome-90e408af16858fc11b3ef53c028d4e128f64a8f3.tar.xz
mgagnome-90e408af16858fc11b3ef53c028d4e128f64a8f3.zip
use correct variable name
-rwxr-xr-xmgagnome2
1 files changed, 1 insertions, 1 deletions
diff --git a/mgagnome b/mgagnome
index 8643e72..1fbbf58 100755
--- a/mgagnome
+++ b/mgagnome
@@ -438,7 +438,7 @@ class SpecFile(object):
# name: SOMETHING
converted_defines = []
for search_for in ('name', 'version', 'release', 'summary', 'Summary', 'group'):
- search_for_ignore_case = ''.join(("[%s%s]" % (letter, letter.swapcase()) for letter in a))
+ search_for_ignore_case = ''.join(("[%s%s]" % (letter, letter.swapcase()) for letter in search_for))
re_spec = re.compile(r'^(?P<keeppre>' + re.escape(search_for_ignore_case) + r'[ \t]*:[ \t]*)(?:\%' + re.escape(search_for) + r'|\%\{' + re.escape(search_for) + r'\})(?P<keeppost>[ \t]*\n)', re.MULTILINE)
re_variable = re.compile(r'^(?P<keeppre>\%define[ \t]+'+ re.escape(search_for) + r'[ \t]+(?P<definition>[^\n]+?))(?P<keeppost>[ \t]*\n)', re.MULTILINE)