Project

Profile

Help

Issue #1903 » 1903.patch

PoC patch that theoretically might fix it (untested) - mhrivnak, 05/09/2016 06:16 PM

View differences:

plugins/pulp_rpm/plugins/importers/yum/upload.py
from pulp_rpm.plugins.importers.yum import purge, utils
from pulp_rpm.plugins.importers.yum.parse import rpm as rpm_parse
from pulp_rpm.plugins.importers.yum.repomd import primary, group, packages
from pulp_rpm.yum_plugin.util import string_to_unicode
# this is required because some of the pre-migration XML tags use the "rpm"
......
rpm_data['buildhost'] = headers['buildhost']
rpm_data['license'] = headers['license']
rpm_data['vendor'] = headers['vendor']
rpm_data['description'] = headers['description']
rpm_data['description'] = string_to_unicode(headers['description'])
rpm_data['build_time'] = headers[rpm.RPMTAG_BUILDTIME]
# Use the mtime of the file to match what is in the generated xml from
# rpm_parse.get_package_xml(..)
(2-2/2)