]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
TypeError: got <type 'str'> ('Enter pass phrase:') as pattern, must be one of: <type...
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 21 Feb 2021 22:10:43 +0000 (23:10 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 21 Feb 2021 22:10:43 +0000 (23:10 +0100)
modules/sign.py

index ef9e814b5d8c01b5353984585539796964f9a44d..e5e1e3d616ae6899f86181ed1a3c85df94d514cd 100644 (file)
@@ -48,7 +48,7 @@ def signpkgs(files, password):
     args = ['--resign', '--define', '_signature gpg', '--define', '_gpg_name ' + sign_key] + files
     child = pexpect.spawn('/bin/rpm', args, encoding='utf-8')
     child.logfile_read = sys.stderr
-    child.expect('Enter pass phrase:', timeout=30)
+    child.expect(u'Enter pass phrase:', timeout=30)
     child.sendline(password)
     child.expect(pexpect.EOF, timeout=None)
     child.close()
This page took 0.200251 seconds and 4 git commands to generate.