]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blobdiff - modules/sign.py
TypeError: got <type 'str'> ('Enter pass phrase:') as pattern, must be one of: <type...
[projects/pld-ftp-admin.git] / 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.105712 seconds and 4 git commands to generate.