Bug 1804308
Summary: | [RFE] As a user, I can parse repodata without having it on disk | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Tanya Tereshchenko <ttereshc> |
Component: | createrepo_c | Assignee: | amatej |
Status: | CLOSED ERRATA | QA Contact: | Jan Blazek <jblazek> |
Severity: | unspecified | Docs Contact: | Mariya Pershina <mpershin> |
Priority: | medium | ||
Version: | 8.3 | CC: | amatej, dalley, mblaha, mpershin, pkratoch |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | createrepo_c-0.15.10-1.el8 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 03:09:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tanya Tereshchenko
2020-02-18 16:27:31 UTC
We have discussed this with dmach a bit, but can you further outline what the migration process will look like? Such as what happens to the package object after its created from the xml snippet, how it will be stored or even later used after the migration is finished? It is saved into db through the object very similar to createrepo_c Package object https://github.com/pulp/pulp_rpm/blob/08dfe9e2f24e1ab960971e6892ffd2975719ae71/pulp_rpm/app/models/package.py#L19. That's it. I have created a PR: https://github.com/rpm-software-management/createrepo_c/pull/210 It also contains some tests. Can you check whether the new functions work for you? Basically they should take a snippet string of repodata xml instead of a path to a file. By snippet here I mean that it contains just <package> elements, not the root element such as <filelists>. @amatej, sorry for the late feedback, it has been a very busy time for everyone and we haven't had time to experiment with the code much. It appears that the PR has already been merged and released with 15.8, but there are some issues. https://github.com/rpm-software-management/createrepo_c/pull/210#issuecomment-597751016 https://github.com/rpm-software-management/createrepo_c/pull/212 Disregard the first link, I eventually realized that I had made a mistake myself. The second issue is really just a nice-to-have. I'll continue testing and see if I find any (actual) issues. Ok great. Also I see your second issue (PR) is already merged. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (createrepo_c bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:4700 |