From: Ondrej Lichtner <olichtne(a)redhat.com>
If there where white space characters at the end of line in a mapping
file, the id would be skipped and therefore not used in the recipe. This
fixes that.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/PerfRepoUtils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Controller/PerfRepoUtils.py b/lnst/Controller/PerfRepoUtils.py
index 4ae38b1..a8fbb6b 100644
--- a/lnst/Controller/PerfRepoUtils.py
+++ b/lnst/Controller/PerfRepoUtils.py
@@ -14,7 +14,7 @@ olichtne(a)redhat.com (Ondrej Lichtner)
import re
def parse_id_mapping(filename):
- line_re = re.compile(r"^(\w+)\s*=\s*(\w+)$")
+ line_re = re.compile(r"^(\w+)\s*=\s*(\w+)\s*$")
res_dict = {}
try:
with open(filename) as f:
--
2.5.0