Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 580857 Details for
Bug 816315
wildcard package selection broke in 2.11
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
wildcard fix
pungi-wildcard-fix.patch (text/plain), 1.85 KB, created by
Daniel Mach
on 2012-04-27 20:13:47 UTC
(
hide
)
Description:
wildcard fix
Filename:
MIME Type:
Creator:
Daniel Mach
Created:
2012-04-27 20:13:47 UTC
Size:
1.85 KB
patch
obsolete
>diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py >index 059b748..337b32a 100644 >--- a/src/pypungi/__init__.py >+++ b/src/pypungi/__init__.py >@@ -506,22 +506,22 @@ class Pungi(pypungi.PungiBase): > else: > # nogreedy > for name in searchlist: >- arch = None >- if "." in name: >- name, arch = name.rsplit(".", 1) >+ packages_by_name = {} >+ exactmatched, matched, unmatched = yum.packages.parsePackages(self.ayum.pkgSack.returnPackages(), [name], casematch=1) >+ matches = filter(self._filtersrcdebug, exactmatched + matched) > >- pkg_sack = self.ayum.pkgSack.searchNevra(name=name, arch=arch) >- # filter sources out of the package sack >- pkg_sack = [ i for i in pkg_sack if i.arch not in ("src", "nosrc") ] >- pkg_sack = self.excludePackages(pkg_sack) >- >- match = self.ayum._bestPackageFromList(pkg_sack) >- if not match: >+ if not matches: > self.logger.warn('Could not find a match for %s in any configured repo' % name) > continue > >- self.ayum.tsInfo.addInstall(match) >- self.logger.info('Found %s.%s' % (match.name, match.arch)) >+ for i in matches: >+ packages_by_name.setdefault(i.name, []).append(i) >+ >+ for i, pkg_sack in packages_by_name.iteritems(): >+ pkg_sack = self.excludePackages(pkg_sack) >+ match = self.ayum._bestPackageFromList(pkg_sack) >+ self.ayum.tsInfo.addInstall(match) >+ self.logger.info('Found %s.%s' % (match.name, match.arch)) > > if len(self.ayum.tsInfo) == 0: > raise yum.Errors.MiscError, 'No packages found to download.'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 816315
: 580857