[master][PATCH] Makeupdates - automatically include needed packages

Martin Kolman mkolman at redhat.com
Wed Jul 24 13:03:15 UTC 2013


This adds support for automatic dependency discovery, download and inclusion
to the updates image. It works by looking for any dependency changes in the
anaconda specfile (new packages, changed versions) since the given Git tag.

If any changes are found, RPMs for the given package and version will be automatically downloaded from
Koji and included in the image. The RPMs are cached locally (in the updates_rpm_cache
folder) and are not downloaded again if found locally on the next run.

The feature can be activated by using the -f or --fetch flag and specifying an architecture
corresponding to the given anaconda image. The full command could look like like this:

./scripts/makeupdates -k -t anaconda-19.30.1-1 --fetch x86_64

As the Koji API seems to take quite some time to answer package search queries,
I plan to either run it in threads or use some other method for getting the
RPM download URLs. Still, once the packages are downloaded, all further runs
should proceed very quickly.



Martin Kolman (1):
  Add automatic fetching of RPMs for new Defines & Requires

 scripts/makeupdates | 212 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 210 insertions(+), 2 deletions(-)

-- 
1.8.3.1



More information about the anaconda-patches mailing list