Bug 1038937
Summary: | [plugins] [api] Add hook for metadata download complete event | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Elad Alfassa <elad> |
Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | akozumpl, packaging-team-maint, pnemade, rholy |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | dnf-0.4.10-1.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-04 19:53:23 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
Elad Alfassa
2013-12-06 08:19:19 UTC
might end up being a hook after the sack ready or similar, but a reasonable hook nonetheless. Resolved by 3d3ad49 on the master branch. The hook will be available from dnf-0.4.10. dnf-0.4.10-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/dnf-0.4.10-1.fc20 Package dnf-0.4.10-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-0.4.10-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-0089/dnf-0.4.10-1.fc20 then log in and leave karma (feedback). This is not what I had in mind. The way you implemented it means it runs every time I do search or install or anything like that, as opposed to when the metadata cache is created - which is when I wanted it to happen but that would have some odd semantics: especially given your requirement in comment 0, the repos are not necessarily synced at the same time given the different expiration periods. I could add a hook like repo_refreshed('reponame') which would get triggered every time 'reponame' has fresh metadata downloaded. but for an initial implementation I think the sack() trigger should work too. It will mean that until the user actually uses dnf the bash completion won't be able to complete available packages. I *really* hoped to be able to use the makecache timer for making sure the cache is relatively up-to-date... dnf-0.4.10-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |