[Yum-devel] log installroot in file log

Florian Festi ffesti at redhat.com
Thu Oct 18 08:18:41 UTC 2007


seth vidal wrote:
> On Wed, 2007-10-17 at 14:50 -0400, James Antill wrote:
> 
>>  Who asked for this, and did they give a problem they are trying to
>> solve by it?
> 
> chroot handling from outside.
> 
>>  I think a better solution is to use a different log file when using a
>> custom installroot, so maybe they'd be happy with a --logfile cmd line
>> option?
> 
> well, when we're operating on a chroot that's already existent we write
> to $chroot/var/log/yum.log
> 
> if the chroot isn't there, yet, we write to /var/log/yum.log so that it
> gets recorded somewhere. 

This might be the real problem. What about either just create 
$chroot/var/log/yum.log when needed (might turn out to be fishy) or complain 
if it isn't accessible and exit.

This "yeah, we logged it... somewhere" thing is asking for trouble.

Florian



More information about the Yum-devel mailing list