Red Hat Bugzilla – Bug 477562
[PATCH] Preupgrade only updates from one repository
Last modified: 2014-01-21 18:07:44 EST
Created attachment 327599 [details]
Support multiple repositories in preupgrade
Currently preupgrade cares very little about repositories other than GOLD's Everything. After preupgrade I ended up having to download ~300M of RPM Fusion packages and Fedora updates.
The attached patch adds support for multiple repositories, making it possible for RPM Fusion to supply its own set of repositories for new release to download the packages from. I'd be very thankful for the review of the patch, since I don't code in python much and am aware it may not be suitable for inclusion as-is from a quality standpoint.
A side effect of the patch is that it mitigates bug #477327 by moving the long string of repository URL to the kickstart file making it less likely to hit the 255 character command line boundary. Probably the URL of stage2 could be also moved into kickstart file (which would require trivial modification of anaconda's stage1 loader), since that tends to be the longest part of the command line in case install.img can't find on /boot and the mirror URLs can be arbitrarily long in theory.
It seems to me that it is really desirable to download updates during preupgrade, since package versions of packages in updates of older branches sometimes advance beyond the version in GA of newer branch.
A good example of this is kernel. Moreover. in f10 anaconda has a bug (fixed in git) that causes it to crash with an unexpected exception when kernel is not being updated, therefore preupgrade will be effectively useless for f10 once f9's kernel is updated to newer version.
This should be fixed with preupgrade-1.1.0.
*** This bug has been marked as a duplicate of bug 473966 ***