From 9b7d42d74da248b470a4e700f30a227b887a7a88 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 3 Mar 2006 21:46:54 +0000 Subject: Support package globs (#177621). --- yuminstall.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'yuminstall.py') diff --git a/yuminstall.py b/yuminstall.py index 914260413..93c0c7877 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -1071,20 +1071,11 @@ class YumBackend(AnacondaBackend): log.debug("no such group %s" %(group,)) def selectPackage(self, pkg, *args): - sp = pkg.rsplit(".", 2) - if len(sp) == 2: - try: - mbrs = self.ayum.install(name = sp[0], arch = sp[1]) - return len(mbrs) - except yum.Errors.InstallError: - # maybe the package has a . in the name - pass - try: - mbrs = self.ayum.install(name=pkg) + mbrs = self.ayum.install(pattern=pkg) return len(mbrs) except yum.Errors.InstallError: - log.debug("no such package %s" %(pkg,)) + log.debug("no package matching %s" %(pkg,)) return 0 def deselectPackage(self, pkg, *args): -- cgit