RPM Community Forums

Mailing List Message of <rpm-devel>

Re: HEAD is broken

From: Anders F Björklund <afb@rpm5.org>
Date: Fri 07 Mar 2008 - 13:57:11 CET
Message-Id: <9C4EEE13-A5C2-455B-986E-5DCFD22B90D7@rpm5.org>
Ralf S. Engelschall wrote:

>> Maybe the iosm needs a new explicit "use-runtime-owner-group" option,
>> than have rpmio call out to the rpmdb function to check for a SRPM ?
>>
>> Like the --no-same-owner option in tar (or some other bad analogue).
>> But what I meant was that maybe it should be made into more generic ?
>
> Ok, but the problem is that the "use-runtime-owner-group" should be
> really just be done for SRPMs. For binary RPMs this would be silly.  
> So,
> I think I still have to be able to _detect_ in the code whether it  
> is a
> source or binary RPM. The remaining question just is: how can this be
> done (now) if headerIsEntry() should be no longer used?

My thinking here was that if there was such a toggle, then it could  
be set
to "on" for the SRPM and "off" for the RPM - before the I/O was started.
I do see the reason behind no-owner-group-on-srpm-install, just assumed
that the check/setting would have to move around a bit in the code now ?

AFAIK, headerIsEntry is perfectly OK in higher level code (like lib/)
just that there is some new rpmio/rpmdb/rpmlib dependency refactoring

--anders
Received on Fri Mar 7 13:57:14 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.