On Fri, Dec 2, 2011 at 9:25 PM, James Antill <[email protected]> wrote:

> ---
>  yum/config.py  |    2 ++
>  yum/yumRepo.py |    3 +++
>  2 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/yum/config.py b/yum/config.py
> index bff59e4..1867975 100644
> --- a/yum/config.py
> +++ b/yum/config.py
> @@ -791,6 +791,7 @@ class YumConf(StartupConf):
>     #  Note that "instant" is the old behaviour, but group:primary is very
>     # similar but better :).
>     mdpolicy = ListOption(['group:primary'])
> +    mddownloadpolicy = SelectionOption('sqlite', ('sqlite', 'xml'))
>     #  ('instant', 'group:all', 'group:main', 'group:small',
> 'group:primary'))
>     multilib_policy = SelectionOption('all',('best', 'all'))
>                  # all == install any/all arches you can
> @@ -929,6 +930,7 @@ class RepoConf(BaseConfig):
>     # NOTE: metalink expire _must_ be the same as metadata_expire, due to
> the
>     #       checksumming of the repomd.xml.
>     mdpolicy = Inherit(YumConf.mdpolicy)
> +    mddownloadpolicy = Inherit(YumConf.mddownloadpolicy)
>     cost = IntOption(1000)
>
>     sslcacert = Inherit(YumConf.sslcacert)
> diff --git a/yum/yumRepo.py b/yum/yumRepo.py
> index 91b7dde..f645a1a 100644
> --- a/yum/yumRepo.py
> +++ b/yum/yumRepo.py
> @@ -1273,6 +1273,9 @@ Insufficient space in download directory %s
>         return True
>
>     def _check_db_version(self, mdtype, repoXML=None):
> +        if self.mddownloadpolicy == 'xml':
> +            return False
> +
>         if repoXML is None:
>             repoXML = self.repoXML
>         if mdtype in repoXML.repoData:
> --
> 1.7.6.4
>
> _______________________________________________
> Yum-devel mailing list
> [email protected]
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>

ACK
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to