Bug 1117789
Summary: | [doc] [api] custom repos | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Bohuslav "Slavek" Kabrda <bkabrda> |
Component: | dnf | Assignee: | Ales Kozumplik <akozumpl> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | akozumpl, jzeleny, pnemade, rholy, tim.lauridsen |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | dnf-0.5.5 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-07-29 07:20:08 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
Bohuslav "Slavek" Kabrda
2014-07-09 11:55:53 UTC
Thanks Slavek, we'll take a look. By coincidence, I'm playing with the same code in unit tests now. I'm pretty sure that the problem is in the permissions to the cache directory. I guess that the same code run under the root privileges will run OK. To aid in debugging similar problems for the client code hawkey commit ef2ca49 improves error reporting, in the comment 0 case the correct exception message will be: OSError: Can not create temporary file: /var/cache/dnf/rawhide.solv.3Ro6Ur. Commit c9452cc upstream improves the documentation ands adds an example for the describe scenario: http://dnf.readthedocs.org/en/latest/api_base.html#dnf.Base.fill_sack Note that I mystified you at one point: Repo() in fact already has a documented constructor in the API: http://dnf.readthedocs.org/en/latest/api_repos.html#dnf.repo.Repo.__init__ Thank you, works like a charm. |