batcave: fix the fedmsg hook

Since we're calling the line right after the len() of the variable
we can't use map as in py3 a map as no length.
So instead we'll just build the list right now.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-06-05 00:17:59 +02:00
parent 4096ed8b4d
commit 79f8c0e654

View file

@ -135,7 +135,7 @@ for line in lines:
agent=getlogin(),
)
commits = map(_build_commit, revs)
commits = [_build_commit(rev) for rev in revs]
print("* Publishing information for %i commits" % len(commits))
for commit in reversed(commits):