summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py13
1 files changed, 2 insertions, 11 deletions
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):