[Mageia-dev] Problem with rpm -q --whatrequires

Colin Guthrie mageia at colin.guthr.ie
Tue Feb 21 13:06:41 CET 2012


'Twas brillig, and Pascal Terjan at 21/02/12 11:53 did gyre and gimble:
> On Tue, Feb 21, 2012 at 09:27, Colin Guthrie <mageia at colin.guthr.ie> wrote:
>> Hi,
>>
>> I think I've mentioned this before here, but I keep getting tripped up
>> by this problem giving out false information.
>>
>> Is this because the kernel requires it as Requires(pre) and thus it
>> doesn't show up? Should it show up?
> 
> I think this is "normal"
> If the package can need it later, it should also require it without
> (pre), else you can uninstall it later as it is only required at the
> time the %pre is run

That makes sense, but then shouldn't "urpmq --whatrequires dracut"
produce the same results.

Seems strange to me as the two arguments seem like they should do the
same thing, but clearly they don't.

Perhaps the options should be:

--whatrequires (covers all types of Require(*):
--whatrequires-pre
--whatrequires-post
--whatrequires-runtime

That way everything is quite deterministic and flexible.

The question is which should change? (and who wants to do it? :D)

Col


-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the Mageia-dev mailing list