From: Markus Lehtonen Date: Fri, 6 Jun 2014 09:39:15 +0000 (+0300) Subject: rpm.policy: don't allow leading whitespace in bts meta tags X-Git-Tag: tizen/0.6.15-20140828~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c54a7d81ddf924a9243d124dce1ee244967882ff;p=tools%2Fgit-buildpackage.git rpm.policy: don't allow leading whitespace in bts meta tags Change-Id: Ib2d39739b4609c088b04b286adfb6aeb5e07f78a Signed-off-by: Markus Lehtonen --- diff --git a/gbp/rpm/policy.py b/gbp/rpm/policy.py index 216bd53e..8f93d0fd 100644 --- a/gbp/rpm/policy.py +++ b/gbp/rpm/policy.py @@ -187,7 +187,7 @@ class RpmPkgPolicy(PkgPolicy): """ tags = {} other_lines = [] - bts_re = re.compile(r'^\s*(?P%s):\s*(?P.*)' % + bts_re = re.compile(r'^(?P%s):\s*(?P.*)' % ('|'.join(meta_tags)), re.I) bug_id_re = re.compile(cls.bug_id_re) for line in lines: