[Yum-devel] Re: making package-cleanup not complain about repositories?

Jeremy Katz katzj at redhat.com
Tue Oct 9 14:45:40 UTC 2007


On Tue, 2007-10-09 at 10:32 -0400, Matthew Miller wrote:
> On Tue, Oct 02, 2007 at 10:48:56AM -0400, Matthew Miller wrote:
> > So, right now, every time you run package-cleanup, you get
> > No Repositories Available to Set Up
> > on stderr. This is confusing to people -- it seems like an error message.
> > It should probably be suppressed in some way....
> 
> Let me be more clear in my question. I think it's obvious that this message
> is very confusing in package-cleanup. It's coming from doSetup in repos.py,
> where it's logged as "critical". The package-cleanup code seems to make an
> attempt to only set up repositories if you're doing something with them, but
> it apparently also gets triggered in doTsSetup somewhere. I note that
> doTsSetup logs a YumFutureDeprecationWarning -- perhaps replacing that in
> package-cleanup with whatever is supposed to be done instead will solve the
> problem?

It shows up in a lot of cases and while it was relevant in the past,
it's a bit less so now (at least, consistently).  I've just bumped the
level of the message down to debug so that it won't be seen unless
people ask for more verbosity which should help quite a bit

Jeremy




More information about the Yum-devel mailing list