rpm.policy: don't allow leading whitespace in bts meta tags
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 6 Jun 2014 09:39:15 +0000 (12:39 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 6 Jun 2014 09:48:23 +0000 (12:48 +0300)
Change-Id: Ib2d39739b4609c088b04b286adfb6aeb5e07f78a
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/rpm/policy.py

index 216bd53..8f93d0f 100644 (file)
@@ -187,7 +187,7 @@ class RpmPkgPolicy(PkgPolicy):
             """
             tags = {}
             other_lines = []
-            bts_re = re.compile(r'^\s*(?P<tag>%s):\s*(?P<ids>.*)' %
+            bts_re = re.compile(r'^(?P<tag>%s):\s*(?P<ids>.*)' %
                                 ('|'.join(meta_tags)), re.I)
             bug_id_re = re.compile(cls.bug_id_re)
             for line in lines: