Um, hard to say what you are being compatible with.
Only rpm-4.4.2.2 has chosen to rename the function.
73 de Jeff
On Mar 6, 2008, at 12:18 PM, Per Øyvind Karlsen wrote:
> RPM Package Manager, CVS Repository
> http://rpm5.org/cvs/
>
> ______________________________________________________________________
> ______
>
> Server: rpm5.org Name: Per Øyvind Karlsen
> Root: /v/rpm/cvs Email: pkarlsen@rpm5.org
> Module: rpm Date: 06-Mar-2008
> 18:18:52
> Branch: HEAD Handle: 2008030617185200
>
> Modified files:
> rpm/lib rpm4compat.h
>
> Log:
> make wrapper function for rpmtsImportPubkey
>
> Summary:
> Revision Changes Path
> 2.4 +5 -1 rpm/lib/rpm4compat.h
>
> ______________________________________________________________________
> ______
>
> patch -p0 <<'@@ .'
> Index: rpm/lib/rpm4compat.h
>
> ======================================================================
> ======
> $ cvs diff -u -r2.3 -r2.4 rpm4compat.h
> --- rpm/lib/rpm4compat.h 5 Mar 2008 22:44:49 -0000 2.3
> +++ rpm/lib/rpm4compat.h 6 Mar 2008 17:18:52 -0000 2.4
> @@ -1,7 +1,7 @@
> /*
> * Copyright © 2008 Per Øyvind Karlsen <peroyvind@mandriva.org>
> *
> - * $Id: rpm4compat.h,v 2.3 2008/03/05 22:44:49 pkarlsen Exp $
> + * $Id: rpm4compat.h,v 2.4 2008/03/06 17:18:52 pkarlsen Exp $
> */
>
> #ifndef H_RPM4COMPAT
> @@ -288,6 +288,10 @@
> return score;
> }
>
> +static inline rpmRC rpmtsImportPubkey(const rpmts ts, const
> unsigned char * pkt, ssize_t pktlen) {
> + return rpmcliImportPubkey(ts, pkt, pktlen);
> +}
> +
> #ifdef __cplusplus
> }
>
> @@ .
> ______________________________________________________________________
> RPM Package Manager http://rpm5.org
> CVS Sources Repository rpm-cvs@rpm5.org
Received on Thu Mar 6 19:12:53 2008