[rhel6-branch][PATCH] Do not select FS packages over and over (#994504)
Vratislav Podzimek
vpodzime at redhat.com
Fri Sep 20 19:22:28 UTC 2013
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 at 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
--
1.7.11.7
More information about the anaconda-patches
mailing list