Bug 1038937 - [plugins] [api] Add hook for metadata download complete event
[plugins] [api] Add hook for metadata download complete event
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: packaging-team-maint
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-06 03:19 EST by Elad Alfassa
Modified: 2014-01-04 14:53 EST (History)
4 users (show)

See Also:
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 14:53:23 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Elad Alfassa 2013-12-06 03:19:19 EST
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.
Comment 1 Ales Kozumplik 2013-12-06 05:03:23 EST
might end up being a hook after the sack ready or similar, but a reasonable hook nonetheless.
Comment 2 Ales Kozumplik 2013-12-17 03:19:59 EST
Resolved by 3d3ad49 on the master branch. The hook will be available from dnf-0.4.10.
Comment 3 Fedora Update System 2014-01-02 05:10:05 EST
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
Comment 4 Fedora Update System 2014-01-03 03:41:48 EST
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).
Comment 5 Elad Alfassa 2014-01-03 07:47:19 EST
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
Comment 6 Ales Kozumplik 2014-01-03 09:48:53 EST
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.
Comment 7 Elad Alfassa 2014-01-03 09:52:07 EST
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...
Comment 8 Fedora Update System 2014-01-04 14:53:23 EST
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.

Note You need to log in before you can comment on or make changes to this bug.