Fixed compile break on pgpFreeDig with RPM 5, thanks eveith
authorMichael Schroeder <mls@suse.de>
Thu, 1 Dec 2011 11:30:35 +0000 (12:30 +0100)
committerMichael Schroeder <mls@suse.de>
Thu, 1 Dec 2011 11:30:35 +0000 (12:30 +0100)
ext/repo_rpmdb.c

index c9ea67638cbb385acd8be989e088e483e26c9078..13b0b7907410ac078460dc37bdf49e77f5d69123 100644 (file)
@@ -3051,7 +3051,11 @@ pubkey2solvable(Solvable *s, Repodata *data, char *pubkey)
   repodata_set_str(data, s - s->repo->pool->solvables, PUBKEY_KEYID, keyid);
   if (dig->pubkey.userid)
     setutf8string(data, s - s->repo->pool->solvables, SOLVABLE_SUMMARY, dig->pubkey.userid);
+#ifndef RPM5
   (void)pgpFreeDig(dig);
+#else
+  (void)pgpDigFree(dig);
+#endif
   solv_free((void *)pkts);
   return 1;
 }