[packagekit] Refreshing the cache wrongly.
Tim Lauridsen
tim.lauridsen at googlemail.com
Wed Feb 20 05:44:29 PST 2008
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.
Tim
More information about the PackageKit
mailing list