[Yum-devel] log installroot in file log
seth vidal
skvidal at fedoraproject.org
Wed Oct 17 19:44:18 UTC 2007
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.
> That also seems to solve problems where you use run from outside the
> chroot, but then want to then run inside the chroot as though all the
> commands happened there (with this fix you'd need to convert the
> logfile).
>
> If we do go this route though I'd prefer to not have anything be
> different for normal entries as this keeps backward compat. on the
> logfile format ... and is also how epoch is handled.
That's why I appended the chroot to keep from deeply messing up existing
regexes.
-sv
More information about the Yum-devel
mailing list