Instead of selecting FS packages for every device we can build a set of packages that should be selected for all devices and do it only once. This speeds up the installation on systems with many devices a lot.
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com --- yuminstall.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/yuminstall.py b/yuminstall.py index ef92d79..82923ae 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -1578,9 +1578,12 @@ debuglevel=6 selectKernel("kernel")
def selectFSPackages(self, storage): + fspkgs = set() for device in storage.fsset.devices: # this takes care of device and filesystem packages - map(self.selectPackage, device.packages) + for pkg in device.packages: + fspkgs.add(pkg) + map(self.selectPackage, fspkgs)
# anaconda requires several programs on the installed system to complete # installation, but we have no guarantees that some of these will be
anaconda-patches@lists.fedorahosted.org