Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-09 Thread Vladimir D. Seleznev
On Fri, Apr 06, 2018 at 08:52:15AM +0300, Panu Matilainen wrote: > On 04/05/2018 03:42 PM, Vladimir D. Seleznev wrote: > > On Thu, Apr 05, 2018 at 11:41:33AM +0300, Panu Matilainen wrote: > >> On 04/03/2018 10:31 PM, Vladimir D. Seleznev wrote: > >>> RPMTAG_IDENTITY is calculating as digest of part

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-09 Thread Vladimir D. Seleznev
On Thu, Apr 05, 2018 at 05:18:14PM -0400, Jeff Johnson wrote: > > > > On Apr 5, 2018, at 4:41 AM, Panu Matilainen wrote: > > > >> On 04/03/2018 10:31 PM, Vladimir D. Seleznev wrote: > >> RPMTAG_IDENTITY is calculating as digest of part of package header that > >> does not contain irrelevant to

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-06 Thread Jeff Johnson
Sent from my iPad > On Apr 6, 2018, at 1:52 AM, Panu Matilainen wrote: > >> On 04/05/2018 03:42 PM, Vladimir D. Seleznev wrote: >>> On Thu, Apr 05, 2018 at 11:41:33AM +0300, Panu Matilainen wrote: On 04/03/2018 10:31 PM, Vladimir D. Seleznev wrote: RPMTAG_IDENTITY is calculating as d

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-05 Thread Panu Matilainen
On 04/05/2018 03:42 PM, Vladimir D. Seleznev wrote: On Thu, Apr 05, 2018 at 11:41:33AM +0300, Panu Matilainen wrote: On 04/03/2018 10:31 PM, Vladimir D. Seleznev wrote: RPMTAG_IDENTITY is calculating as digest of part of package header that does not contain irrelevant to package build tag entri

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-05 Thread Jeff Johnson
> On Apr 5, 2018, at 4:41 AM, Panu Matilainen wrote: > >> On 04/03/2018 10:31 PM, Vladimir D. Seleznev wrote: >> RPMTAG_IDENTITY is calculating as digest of part of package header that >> does not contain irrelevant to package build tag entries. >> Mathematically RPMTAG_IDENTITY value is a resu

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-05 Thread Jeff Johnson
> On Apr 5, 2018, at 2:12 AM, Panu Matilainen wrote: > >> On 04/04/2018 05:32 PM, Vladimir D. Seleznev wrote: >>> On Wed, Apr 04, 2018 at 09:18:35AM -0400, Jeff Johnson wrote: >>> >>> On Apr 4, 2018, at 5:47 AM, Panu Matilainen wrote: On 04/04/2018 11:01 AM, Panu Matilainen w

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-05 Thread Vladimir D. Seleznev
On Thu, Apr 05, 2018 at 03:42:15PM +0300, Vladimir D. Seleznev wrote: > On Thu, Apr 05, 2018 at 11:41:33AM +0300, Panu Matilainen wrote: > > On 04/03/2018 10:31 PM, Vladimir D. Seleznev wrote: > > > RPMTAG_IDENTITY is calculating as digest of part of package header that > > > does not contain irrel

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-05 Thread Vladimir D. Seleznev
On Thu, Apr 05, 2018 at 11:41:33AM +0300, Panu Matilainen wrote: > On 04/03/2018 10:31 PM, Vladimir D. Seleznev wrote: > > RPMTAG_IDENTITY is calculating as digest of part of package header that > > does not contain irrelevant to package build tag entries. > > > > Mathematically RPMTAG_IDENTITY va

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-05 Thread Panu Matilainen
On 04/03/2018 10:31 PM, Vladimir D. Seleznev wrote: RPMTAG_IDENTITY is calculating as digest of part of package header that does not contain irrelevant to package build tag entries. Mathematically RPMTAG_IDENTITY value is a result of function of two variable: a package header and an rpm utility,

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-04 Thread Panu Matilainen
On 04/04/2018 05:32 PM, Vladimir D. Seleznev wrote: On Wed, Apr 04, 2018 at 09:18:35AM -0400, Jeff Johnson wrote: On Apr 4, 2018, at 5:47 AM, Panu Matilainen wrote: On 04/04/2018 11:01 AM, Panu Matilainen wrote: [...] +static int identityTag(Header h, rpmtd td, headerGetFlags hgflags) +{ +

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-04 Thread Vladimir D. Seleznev
On Wed, Apr 04, 2018 at 09:18:35AM -0400, Jeff Johnson wrote: > > > > On Apr 4, 2018, at 5:47 AM, Panu Matilainen wrote: > > > > On 04/04/2018 11:01 AM, Panu Matilainen wrote: > > [...] > >>> +static int identityTag(Header h, rpmtd td, headerGetFlags hgflags) > >>> +{ > >>> +int rc = 1; > >

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-04 Thread Jeff Johnson
> On Apr 4, 2018, at 5:47 AM, Panu Matilainen wrote: > > On 04/04/2018 11:01 AM, Panu Matilainen wrote: > [...] >>> +static int identityTag(Header h, rpmtd td, headerGetFlags hgflags) >>> +{ >>> +int rc = 1; >>> +unsigned int bsize; >>> +void * hb; >>> +DIGEST_CTX ctx; >>> +

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-04 Thread Panu Matilainen
On 04/04/2018 11:01 AM, Panu Matilainen wrote: [...] +static int identityTag(Header h, rpmtd td, headerGetFlags hgflags) +{ +    int rc = 1; +    unsigned int bsize; +    void * hb; +    DIGEST_CTX ctx; +    char * identity = NULL; + +    struct rpmtd_s ttd; +    Header ih = headerNew(); +    Hea

Re: [Rpm-maint] [PATCH] Add RPMTAG_IDENTITY calculation as tag extension

2018-04-04 Thread Panu Matilainen
On 04/03/2018 10:31 PM, Vladimir D. Seleznev wrote: RPMTAG_IDENTITY is calculating as digest of part of package header that does not contain irrelevant to package build tag entries. Mathematically RPMTAG_IDENTITY value is a result of function of two variable: a package header and an rpm utility,