[packagekit] yumbackend metadata_expire in mediarepo
Richard Hughes
hughsient at gmail.com
Wed Jul 29 05:49:42 PDT 2009
2009/7/29 مؤيد السعدي <muayyad.alsadi at ojuba.org>:
> I guess there should be some condition
> for example in the last two cases it should become
>
> for repo in self.yumbase.repos.listEnabled():
> if repo.metadata_expire!=-1:
> repo.metadata_expire = 60 * 60 * 24 # 24 hours
Yes, this is a good idea, along with a comment describing what the -1
value means.
Thanks,
Richard.
More information about the PackageKit
mailing list