Le mardi 3 juillet 2007, Olivier Thauvin a écrit :
>   RPM Package Manager, CVS Repository
>   http://rpm5.org/cvs/

>   Log:
>     rpmlib.h expose some mire related function, and rpmPlatformScore() take
>     it as argument. However the function to fill the structure is not
> exposed and so is likelly useless.
>     This commit expose mireAppend in API and .h to allow any tools to
> perform a platorm comparison on an arbitrary list.
>
>   Summary:
>     Revision    Changes     Path
>     2.195.2.3   +1  -1      rpm/lib/rpmrc.c
>     1.2.2.1     +13 -0      rpm/rpmio/mire.h

If everybody agree with that change, I'll push it into HEAD, otherwise, if 
you're against I'll revert.

Regards.

> ___________________________________________________________________________
>_
>
>   patch -p0 <<'@@ .'
>   Index: rpm/lib/rpmrc.c
>  
> ===========================================================================
>= $ cvs diff -u -r2.195.2.2 -r2.195.2.3 rpmrc.c
>   --- rpm/lib/rpmrc.c 10 Jun 2007 17:12:25 -0000      2.195.2.2
>   +++ rpm/lib/rpmrc.c 3 Jul 2007 16:49:00 -0000       2.195.2.3
>   @@ -958,7 +958,7 @@
>     * @retval *mi_nrep        no. of patterns in array
>     */
>    /[EMAIL PROTECTED]@*/
>   -static int mireAppend(rpmMireMode mode, int tag, const char * pattern,
>   +int mireAppend(rpmMireMode mode, int tag, const char * pattern,
>               miRE * mi_rep, int * mi_nrep)
>       /[EMAIL PROTECTED] *mi_rep, *mi_nrep @*/
>    {
>   @@ .
>   patch -p0 <<'@@ .'
>   Index: rpm/rpmio/mire.h
>  
> ===========================================================================
>= $ cvs diff -u -r1.2 -r1.2.2.1 mire.h
>   --- rpm/rpmio/mire.h        25 May 2007 18:34:14 -0000      1.2
>   +++ rpm/rpmio/mire.h        3 Jul 2007 16:49:00 -0000       1.2.2.1
>   @@ -111,6 +111,19 @@
>    int mireRegcomp(miRE mire, const char * pattern)
>       /[EMAIL PROTECTED] mire @*/;
>
>   +/**
>   + * Append pattern to array.
>   + * @param mode      type of pattern match
>   + * @param tag       identifier (like an rpmTag)
>   + * @param pattern   pattern to compile
>   + * @retval *mi_rep  platform pattern array
>   + * @retval *mi_nrep no. of patterns in array
>   + */
>   +int mireAppend(rpmMireMode mode, int tag, const char * pattern,
>   +                miRE * mi_rep, int * mi_nrep)
>   +   /[EMAIL PROTECTED] mire @*/;
>   +
>   +
>    #ifdef __cplusplus
>    }
>    #endif
>   @@ .
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> CVS Sources Repository                                [EMAIL PROTECTED]


Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to