[OE-core] [RFC PATCH] rpm signing: replace python-pexpect with our own implementation

Markus Lehtonen markus.lehtonen at linux.intel.com
Mon Mar 21 16:15:06 UTC 2016


This patch is inspired by Ross's desire to get rid of the external dependency
to python-pexpect. This dependency is currently undocumented and only for
signing RPM packages. We need to use something like pexpect because rpm uses
tty directly to read the passphrase and normal redirection does not work for
us.

I'm sending this patch as RFC. It seems to work fine, for me at least. However,
my implementation is relatively simple and there might be some quirks and
corner cases that I'm missing. It might be better just to use the real
python-pexpect.

Comments and suggestions are welcome.

[YOCTO #9304]

Markus Lehtonen (1):
  oe/gpg_sign: use our own immplementation of pexpect

 meta/lib/oe/gpg_sign.py | 104 +++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 90 insertions(+), 14 deletions(-)

-- 
2.6.2




More information about the Openembedded-core mailing list