[packagekit] Refreshing the cache wrongly.
Robin Norwood
rnorwood at redhat.com
Wed Feb 20 07:20:15 PST 2008
On Wed, 20 Feb 2008 14:44:29 +0100
Tim Lauridsen <tim.lauridsen at googlemail.com> wrote:
> Robin Norwood wrote:
>
> >
> >
> > So obviously I'm doing it wrongly. Any yum guys out there to help?
> >
> > old_cache_setting = self.yumbase.conf.cache
> > self.yumbase.conf.cache = 0
> self.yumbase.repos.setCache(0)
> > self.yumbase.repos.populateSack(mdtype='metadata',
> > cacheonly=1) self.yumbase.repos.populateSack(mdtype='filelists',
> > cacheonly=1) self.yumbase.repos.populateSack(mdtype='otherdata',
> > cacheonly=1) self.yumbase.conf.cache = old_cache_setting
> self.yumbase.repos.setCache(old_cache_setting)
> >
> >
> > -RN
> >
>
> Try these changes.
Yeah, skvidal clued me in to these changes, and I've committed them.
-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