[Yum-devel] [PATCH] Fix install "*bin/virt-install" to do what "/*bin/virt-install" does

Seth Vidal skvidal at fedoraproject.org
Mon Sep 21 20:58:33 UTC 2009



On Mon, 21 Sep 2009, James Antill wrote:

> ---
> yum/depsolve.py |    9 +--------
> 1 files changed, 1 insertions(+), 8 deletions(-)
>
> diff --git a/yum/depsolve.py b/yum/depsolve.py
> index 467f657..89adfda 100644
> --- a/yum/depsolve.py
> +++ b/yum/depsolve.py
> @@ -159,13 +159,6 @@ class Depsolve(object):
>
>         self.verbose_logger.log(logginglevels.DEBUG_1, _('Searching pkgSack for dep: %s'),
>             name)
> -        # we need to check the name - if it doesn't match:
> -        # /etc/* bin/* or /usr/lib/sendmail then we should fetch the
> -        # filelists.xml for all repos to make the searchProvides more complete.
> -        if name[0] == '/':
> -            if not misc.re_primary_filename(name):
> -                self.doSackFilelistPopulate()
> -
>         pkgs = self.pkgSack.searchProvides(name)
>
>
> @@ -181,7 +174,7 @@ class Depsolve(object):
>         for po in pkgs:
>             self.verbose_logger.log(logginglevels.DEBUG_2,
>                 _('Potential match for %s from %s'), name, po)
> -            if name[0] == '/' and r_v is None:
> +            if (name[0] == '/' or misc.re_glob(name[0])) and r_v is None:
>                 # file dep add all matches to the defSack
>                 defSack.addPackage(po)
>                 continue


as discussed on irc: ACK

-sv



More information about the Yum-devel mailing list