Public bug reported:

The example shipped with pygpgme
<http://bazaar.launchpad.net/~jamesh/pygpgme/trunk/view/head:/examples/encrypt.py>
is likely to not work because the key is not trusted.

A simple fix is to
ctx.encrypt([key], gpgme.ENCRYPT_ALWAYS_TRUST, plain, cipher)

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: python-gpgme 0.3-1
ProcVersionSignature: Ubuntu 3.19.0-18.18-generic 3.19.6
Uname: Linux 3.19.0-18-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Jun 16 15:23:43 2015
SourcePackage: pygpgme
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: pygpgme (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug vivid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1465674

Title:
  pygpgme example likely to not work - simple fix

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygpgme/+bug/1465674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to