summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-06 12:39:15 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-06 12:48:23 +0300
commitc54a7d81ddf924a9243d124dce1ee244967882ff (patch)
tree19c210a8ea6b54e6745d81ed55b52fa021f8dcbd
parent0f1fc7f430e6f25ab5f8516ca5f8a79291f86c50 (diff)
downloadgit-buildpackage-c54a7d81ddf924a9243d124dce1ee244967882ff.tar.gz
git-buildpackage-c54a7d81ddf924a9243d124dce1ee244967882ff.tar.bz2
git-buildpackage-c54a7d81ddf924a9243d124dce1ee244967882ff.zip
rpm.policy: don't allow leading whitespace in bts meta tags
Change-Id: Ib2d39739b4609c088b04b286adfb6aeb5e07f78a Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r--gbp/rpm/policy.py2
1 files changed, 1 insertions, 1 deletions
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<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: