[Yum-devel] [PATCH 2/2] Always try searchNames() in rpm, because .dbMatch('name') is so damn fast

Seth Vidal skvidal at fedoraproject.org
Fri Jun 4 18:41:31 UTC 2010



On Fri, 4 Jun 2010, James Antill wrote:

> ---
> yum/rpmsack.py |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/yum/rpmsack.py b/yum/rpmsack.py
> index fd7cc1f..28106d6 100644
> --- a/yum/rpmsack.py
> +++ b/yum/rpmsack.py
> @@ -458,7 +458,7 @@ class RPMDBPackageSack(PackageSackBase):
>
>         #  See if we can load the "patterns" via. dbMatch('name', ...) because
>         # that's basically instant and walking the entire rpmdb isn't.
> -        if not self._completely_loaded and patterns and not ignore_case:
> +        if not self._completely_loaded and patterns:
>             ret = []
>             for pat in patterns:
>                 #  We aren't wasting anything here, because the next bit

ACK

-sv



More information about the Yum-devel mailing list