[Yum-devel] [PATCH 1/2] do globs on provides in 'yum install'. BZ 770137.

James Antill james at fedoraproject.org
Tue Jan 3 18:03:33 UTC 2012


On Mon, 2012-01-02 at 17:41 +0100, Zdeněk Pavlas wrote:
> ---
>  yum/__init__.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/yum/__init__.py b/yum/__init__.py
> index eee1461..d828b7d 100644
> --- a/yum/__init__.py
> +++ b/yum/__init__.py
> @@ -3852,7 +3852,7 @@ class YumBase(depsolve.Depsolve):
>                          arg)
>  
>                      try:
> -                        mypkgs = self.returnPackagesByDep(arg)
> +                        mypkgs = self.pkgSack.searchAll(arg, None)
>                      except yum.Errors.YumBaseError, e:
>                          self.logger.critical(_('No Match for argument: %s') % to_unicode(arg))
>                      else:

 As the comment says, searchAll() is cracky in more than one way...

    def searchAll(self,name, query_type='like'):
        # this function is just silly and it reduces down to just this
        return self.searchPrco(name, 'provides')

...aka. searchProvides(). Both are implemented in rpmsack too,
*sigh* ... I wonder if '*.desktop' will give different answers.



More information about the Yum-devel mailing list