[Yum-devel] [PATCH] Fix install "*bin/virt-install" to do what "/*bin/virt-install" does
James Antill
james at and.org
Mon Sep 21 20:56:10 UTC 2009
---
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
--
1.6.2.5
More information about the Yum-devel
mailing list