I need a hook for metadata download complete event. See bug #1030440 for more info.
Note that it'd be better if that hook would fire after the entirety of the metadata from all repos is downloaded and processed, as opposed to once per repo.
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.
* 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:
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.