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

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to