[packagekit] yum2 error fixes
tim.lauridsen at googlemail.com
Sat Feb 16 11:15:12 PST 2008
Robin Norwood wrote:
> On Fri, 15 Feb 2008 20:30:32 +0100
> Tim Lauridsen <tim.lauridsen at googlemail.com> wrote:
>> Robin Norwood wrote:
>>> o Is 'yum cache invalid' a correct description for any RepoError, or
>>> are there other error cases that throw RepoErrors?
>> RepoError is raised, if there is something wrong with metadate, i
>> cacheonly mode, then it is because some need metadata is missing.
>> There is some other cases when not in cacheonly mode, but this is
>> thing we cant solve any way. (Ex. bad configuration i .repo files)
>>> o Is there anything we can do inside PK to recover from this?
>> We can refreshcache and try again.
> Ok. That takes almost a minute on my system. What's the best way to
> notify the engine so the user
> except yum.Errors.RepoError,e:
> self.ErrorCode(ERROR_NO_CACHE,"Yum cache is invalid. Rebuilding.")
I am not sure we should do this (self._refresh_yum_cache()) we should
just signal to pk that the cache is invalid, and then pk should call
More information about the PackageKit