Comment 1 for bug 576405

Revision history for this message
Michael Nelson (michael.nelson) wrote :

Although the fix itself is trivial as Max pointed out:

http://pastebin.ubuntu.com/429118/

Tests didn't fail because we don't actually call the real IGPGHandler.generateKey() - due to entropy needs (and general slowness). However, we're currently mocking a lot more than simply the gpgme.Context().genkey() call in our tests, and the code can be refactored so that the tests do test everything but that, and demonstrate this issue bug. I've got a branch that does this, but it needs a bit of work still, so in the mean time I'll try to get the above cowboy-ed.

Grepping for generateKey shows that it's only soyuz code that calls this (archivesigning and ppa key generation).