RPM Community Forums

Mailing List Message of <rpm-lsb>

Re: LSB Package API

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 21 Jun 2008 - 17:25:39 CEST
Message-id: <E91B7B22-077D-4331-9451-CB75F21AAC8E@mac.com>

On Jun 21, 2008, at 10:55 AM, Jeff Johnson wrote:

>
> On Jun 21, 2008, at 10:32 AM, Denis Washington wrote:
>
>>
>> Thanks for taking a look. I am really new to programming RPM, so any
>> help is greatly appreciated.
>>
>

This code snippet could be simplified:

     ts = rpmtsCreate();
     tid = time(NULL);
     rpmtsSetTid(ts, tid);

rpmtsCreate() already initializes the transaction ID.

     In lib/rpmts.c rpmtsCreate()
          ts->tid = (int_32) time(NULL);

The issue will become important if/when multiple
packages need registration with an identical transaction
identifier is attempted. They should have the same
transaction identifier.

But the "Berlin API" is woefully silent on issues
of "upgrade" and "erasure" or multiple package
registration. Oh well ...

73 de Jeff
Received on Sat Jun 21 17:27:18 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.