SPECS: spec_utf8 - ignore if/endif in desc
arekm
arekm at pld-linux.org
Sun Feb 11 21:40:34 CET 2007
Author: arekm Date: Sun Feb 11 20:40:34 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- ignore if/endif in desc
---- Files affected:
SPECS:
spec_utf8 (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/spec_utf8
diff -u SPECS/spec_utf8:1.12 SPECS/spec_utf8:1.13
--- SPECS/spec_utf8:1.12 Sun Feb 11 20:29:20 2007
+++ SPECS/spec_utf8 Sun Feb 11 21:40:29 2007
@@ -62,6 +62,7 @@
re_utf = re.compile("^utf-8$", re.I)
re_desc = re.compile("^(%description.*\s)-l\s+([\S]+)($|\s.*$)")
re_proc = re.compile("^%[^{]")
+ re_ignore_proc = re.compile("^%(if|endif)")
re_changelog = re.compile("^%changelog")
in_desc = False
in_changelog = False
@@ -82,7 +83,7 @@
in_desc = True
outline = "%s-l %s.UTF-8%s\n" % (r.group(1), pure_lang, r.group(3))
elif in_desc:
- if re_proc.search(l):
+ if re_proc.search(l) and not re_ignore_proc.search(l):
in_desc = False
else:
# %description continues
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/spec_utf8?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list