bindings: sig verification only works with ENABLE_PGPVRFY
authorMichael Schroeder <mls@suse.de>
Tue, 29 Oct 2013 16:01:03 +0000 (17:01 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 29 Oct 2013 16:01:03 +0000 (17:01 +0100)
bindings/solv.i

index 9915821..9bde0a0 100644 (file)
@@ -3043,10 +3043,12 @@ rb_eval_string(
   Chksum *Chksum() {
     return $self->htype ? (Chksum *)solv_chksum_create($self->htype) : 0;
   }
+#ifdef ENABLE_PGPVRFY
   %newobject verify;
   XSolvable *verify(Repo *repo, Chksum *chksum) {
     Id p = solvsig_verify($self, repo, chksum);
     return new_XSolvable(repo->pool, p);
   }
+#endif
 }
 #endif