summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Rękorajski2021-01-17 10:43:57 (GMT)
committerJan Rękorajski2021-01-17 10:43:57 (GMT)
commit9ebafd9b6e3a5538c659dfc1ed70354436b64d53 (patch)
tree8c6b01549ae0bacf42f104278bd11b4e60514fb5
parentf09b8024554f99d92337f94693bf65442301d097 (diff)
downloadpld-ftp-admin-9ebafd9b6e3a5538c659dfc1ed70354436b64d53.zip
pld-ftp-admin-9ebafd9b6e3a5538c659dfc1ed70354436b64d53.tar.gz
pexpect needs explicit encoding when run under python3
-rw-r--r--modules/sign.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sign.py b/modules/sign.py
index 1b2da4e..ef9e814 100644
--- a/modules/sign.py
+++ b/modules/sign.py
@@ -46,7 +46,7 @@ def signpkgs(files, password):
os.putenv('LC_ALL', 'C')
args = ['--resign', '--define', '_signature gpg', '--define', '_gpg_name ' + sign_key] + files
- child = pexpect.spawn('/bin/rpm', args)
+ child = pexpect.spawn('/bin/rpm', args, encoding='utf-8')
child.logfile_read = sys.stderr
child.expect('Enter pass phrase:', timeout=30)
child.sendline(password)