Subject: fix "Fails to create a Context unless gpgme_check_version is called
 manually" using custom patch until upstream doesn't fix it
Author: Miguel Di Ciurcio Filho <miguel@ic.unicamp.br>
Bug: https://bugs.launchpad.net/pygpgme/+bug/452194
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549921
Applied-Upstream: https://code.launchpad.net/~jelmer/pygpgme/bug452194/+merge/21635
Last-Update: 2011-04-17

Index: pygpgme-0.1+bzr20090820/src/pygpgme-context.c
===================================================================
--- pygpgme-0.1+bzr20090820.orig/src/pygpgme-context.c	2009-10-14 19:57:00.000000000 +0000
+++ pygpgme-0.1+bzr20090820/src/pygpgme-context.c	2009-10-14 19:57:21.000000000 +0000
@@ -92,6 +92,8 @@
         return -1;
     }
 
+    gpgme_check_version(NULL);
+
     if (pygpgme_check_error(gpgme_new(&self->ctx)))
         return -1;
 
