RPM Community Forums

Mailing List Message of <rpm-lsb>

Re: LSB Package API

From: Denis Washington <dwashington@gmx.net>
Date: Sat 21 Jun 2008 - 19:17:31 CEST
Message-Id: <1214068651.5778.152.camel@dwashington>
On Sat, 2008-06-21 at 13:01 -0400, Jeff Johnson wrote:
> On Jun 21, 2008, at 12:48 PM, Denis Washington wrote:
> 
> > On Sat, 2008-06-21 at 12:27 -0400, Jeff Johnson wrote:
> >> On Jun 21, 2008, at 12:05 PM, Denis Washington wrote:
> >>
> >>>
> >>> What if the transaction fails? register_package() would have  
> >>> returned
> >>> without error although the registration was unsuccessful then,  
> >>> and all
> >>> files would already be installed.
> >>>
> >>
> >> What if you've added a header, but your daemon exits before
> >> successfully computing and adding RPMTAG_SIZE withthe
> >> _close_package() method?
> >
> > Got me. Although, if a dummy value (e.g. 0) was added in
> > _register_package(), an unsuccessful _close_package() wouldn't be a  
> > harm
> > at all. The header would be complete anyway.
> >
> 
> Hint: RPMTAG_SIZE simply does not matter. Nor do Vendor: Packager:
> Description: Summary: and all the other goopiness carried in
> markup (because its easy to add) and rpmdb Headers.
> 
> OTOH, RPMTAG_FILESTATES is gonna matter a _LOT_. So
> will leaving stale locks, and forgetting to attach stderr when
> your widdle daemon forks.

Could you explain what should go in RPM_FILESTATES? It's not listed in
the LSB specification.

Regards,
Denis
Received on Sat Jun 21 19:17:38 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.