1 |
commit: 41b470c43fd84b66454576d1ec0d84433f0508b0 |
2 |
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 17 08:14:35 2021 +0000 |
4 |
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 17 08:14:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=41b470c4 |
7 |
|
8 |
Fix bug in PersOutputOfEmerge for cpv line with more then one spec |
9 |
|
10 |
Signed-off-by: Magnus Granberg <zorry <AT> gentoo.org> |
11 |
|
12 |
buildbot_gentoo_ci/steps/builders.py | 6 ++++-- |
13 |
1 file changed, 4 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/buildbot_gentoo_ci/steps/builders.py b/buildbot_gentoo_ci/steps/builders.py |
16 |
index 63a1ae9..5b53018 100644 |
17 |
--- a/buildbot_gentoo_ci/steps/builders.py |
18 |
+++ b/buildbot_gentoo_ci/steps/builders.py |
19 |
@@ -37,8 +37,10 @@ def PersOutputOfEmerge(rc, stdout, stderr): |
20 |
# action [ N ] stuff |
21 |
subdict['action'] = line[8:15].replace(' ', '') |
22 |
# cpv |
23 |
- #FIXME: We my have more then one spece betvine ] and cpv |
24 |
- cpv_split = re.search('] (.+?) ', line).group(1).split(':') |
25 |
+ # We my have more then one spece betvine ] and cpv |
26 |
+ cpv_line = re.sub(' +', ' ', line) |
27 |
+ # get cpv |
28 |
+ cpv_split = re.search('] (.+?) ', cpv_line).group(1).split(':') |
29 |
print(cpv_split) |
30 |
cpv = cpv_split[0] |
31 |
# repository |