]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
pexpect needs explicit encoding when run under python3
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 17 Jan 2021 10:43:57 +0000 (11:43 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 17 Jan 2021 10:43:57 +0000 (11:43 +0100)
modules/sign.py

index 1b2da4e51225d1bf0f3cee036f4015274196f291..ef9e814b5d8c01b5353984585539796964f9a44d 100644 (file)
@@ -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)
This page took 0.077408 seconds and 4 git commands to generate.