HomePhorge

(PUP-1060) Don't fetch latest versions at prefetch
72481bdbf115Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

(PUP-1060) Don't fetch latest versions at prefetch

In the previous implementation of yum .prefetch, package providers were
loaded and then the yumhelper.py script was used to determine the latest
versions available for all installed packages. While this worked for
simple cases, trying to support multiple combinations of enablerepo and
disablerepo flags makes this grossly more complex. In addition this
information is not needed at prefetch time, and testing the behavior in
prefetch gets messy.

This commit extracts the latest version query from the prefetch method.
It moves the logic to a method that does the actual querying and lazily
loads that data to keep the same run speeds. When multiple combinations
of enablerepo and disablerepo are added this information can be loaded
in the same fashion.

Details

Event Timeline

Adrien Thebo <git@somethingsinistral.net> committed rPU72481bdbf115: (PUP-1060) Don't fetch latest versions at prefetch (authored by Adrien Thebo <git@somethingsinistral.net>).Apr 21 2014, 10:46 PM