[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] rblib.utils.irc_msg: encode the string before passing them to subprocess.run()
Mattia Rizzolo
gitlab at salsa.debian.org
Fri Nov 9 13:34:10 GMT 2018
Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net
Commits:
5b1832b4 by Mattia Rizzolo at 2018-11-09T13:33:14Z
rblib.utils.irc_msg: encode the string before passing them to subprocess.run()
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- bin/rblib/utils.py
Changes:
=====================================
bin/rblib/utils.py
=====================================
@@ -73,5 +73,5 @@ def strip_epoch(version):
def irc_msg(msg, channel='debian-reproducible'):
kgb = ['kgb-client', '--conf', '/srv/jenkins/kgb/%s.conf' % channel,
'--relay-msg']
- kgb.extend(str(msg).strip().split())
+ kgb.extend(str(msg).strip().encode('utf-8').split())
subprocess.run(kgb)
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/5b1832b41ce681bb9cd48d9d08329d07d89f42dd
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/5b1832b41ce681bb9cd48d9d08329d07d89f42dd
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20181109/20555e69/attachment.html>
More information about the Qa-jenkins-scm
mailing list