diff options
author | Chris Lumens <clumens@redhat.com> | 2006-03-03 21:46:54 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-03-03 21:46:54 +0000 |
commit | 9b7d42d74da248b470a4e700f30a227b887a7a88 (patch) | |
tree | a6347bf6eb5bd69566eac9beb3f152853404ff9d /yuminstall.py | |
parent | db6d0f54f7c41c004ddc36e59b4243233b5f58d8 (diff) | |
download | anaconda-9b7d42d74da248b470a4e700f30a227b887a7a88.tar.gz anaconda-9b7d42d74da248b470a4e700f30a227b887a7a88.tar.xz anaconda-9b7d42d74da248b470a4e700f30a227b887a7a88.zip |
Support package globs (#177621).
Diffstat (limited to 'yuminstall.py')
-rw-r--r-- | yuminstall.py | 13 |
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): |