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 871337 Details for
Bug 1073256
Error in yum/repoMDObject.py
[?]
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]
repoMDObject: tags['distro'] is a dict
BZ-1073256-repoMDObject-tags-distro-is-a-dict.patch (text/plain), 1.27 KB, created by
Mathieu Bridon
on 2014-03-06 11:00:34 UTC
(
hide
)
Description:
repoMDObject: tags['distro'] is a dict
Filename:
MIME Type:
Creator:
Mathieu Bridon
Created:
2014-03-06 11:00:34 UTC
Size:
1.27 KB
patch
obsolete
>From 72833f0a6618ac41d3a824425aeff287be785f9e Mon Sep 17 00:00:00 2001 >From: Mathieu Bridon <bochecha@fedoraproject.org> >Date: Thu, 6 Mar 2014 18:48:23 +0800 >Subject: [PATCH] repoMDObject: tags['distro'] is a dict > >Everything in this file handles it as a dict, it is declared as a dict, >etc... > >Expecting a list of tuples at this point is very confusing, and >potentially problematic. > >Indeed, createrepo's modifyrepo expects this to be a dict, like the rest >of this file. > >However, createrepo itself expects it to be a list of tuples, so it will >need to be fixed too. > >https://bugzilla.redhat.com/show_bug.cgi?id=1073256 >--- > yum/repoMDObject.py | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/yum/repoMDObject.py b/yum/repoMDObject.py >index 31b1080..afc7947 100755 >--- a/yum/repoMDObject.py >+++ b/yum/repoMDObject.py >@@ -225,7 +225,7 @@ class RepoMD: > for item in self.tags['repo']: > tag = """ <repo>%s</repo>\n""" % (to_xml(item)) > tags += tag >- for (cpeid, item) in self.tags['distro']: >+ for (cpeid, item) in self.tags['distro'].items(): > itemlist = list(item) # frellingsets. > if cpeid: > tag = """ <distro cpeid="%s">%s</distro>\n""" % ( >-- >1.7.1 >
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 1073256
:
871336
| 871337