- child.expect('Enter pass phrase:', timeout=30)
- child.sendline(password)
+ # TODO: we need a smarter way to figuring out if rpm already stored password in gpg-agent
+ try:
+ child.expect(u'Enter pass phrase:', timeout=30)
+ child.sendline(password)
+ except pexpect.exceptions.TIMEOUT:
+ print('WARN: rpm did not ask for password', file=sys.stderr)