[packagekit] yum2 error fixes
Robin Norwood
rnorwood at redhat.com
Fri Feb 15 12:42:15 PST 2008
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.")
self.Finished(EXIT_FAILED)
self.StatusChanged(STATUS_WAIT)
self._refresh_yum_cache()
return
?
-RN
--
Robin Norwood
Red Hat, Inc.
"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching
More information about the PackageKit
mailing list