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 909637 Details for
Bug 1110269
Migration from 2.2 to 2.3 fails during pulp-manage-db-run.
[?]
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]
migration patch
migration.patch (text/plain), 1.03 KB, created by
Michael Hrivnak
on 2014-06-17 15:16:25 UTC
(
hide
)
Description:
migration patch
Filename:
MIME Type:
Creator:
Michael Hrivnak
Created:
2014-06-17 15:16:25 UTC
Size:
1.03 KB
patch
obsolete
>diff --git a/pulp_rpm/src/pulp_rpm/migrations/0011_new_importer.py b/pulp_rpm/src/pulp_rpm/migrations/0011_new_importer.py >index 20fc5d2..7ddfd76 100644 >--- a/pulp_rpm/src/pulp_rpm/migrations/0011_new_importer.py >+++ b/pulp_rpm/src/pulp_rpm/migrations/0011_new_importer.py >@@ -17,6 +17,7 @@ from pulp.server.db import connection > > from pulp_rpm.common.models import RPM, SRPM > from pulp_rpm.plugins.importers.yum import utils >+from pulp_rpm.plugins.importers.yum.parse import rpm > from pulp_rpm.plugins.importers.yum.repomd import primary > > # this is required because some of the pre-migration XML tags use the "rpm" >@@ -32,6 +33,8 @@ def migrate(*args, **kwargs): > def _migrate_collection(type_id): > collection = types_db.type_units_collection(type_id) > for package in collection.find(): >+ if 'repodata' not in package: >+ package['repodata'] = rpm.get_package_xml(package['_storage_path']) > # grab the raw XML and parse it into the elements we'll need later > try: > # make a guess at the encoding
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 1110269
: 909637