Univention Bugzilla – Attachment 5303 Details for
Bug 31895
System-Setup is slow
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for util.py
umc-system-setup-load-optimization.patch (text/plain), 1007 bytes, created by
Alexander Kläser
on 2013-07-04 12:59 CEST
(
hide
)
Description:
Patch for util.py
Filename:
MIME Type:
Creator:
Alexander Kläser
Created:
2013-07-04 12:59 CEST
Size:
1007 bytes
patch
obsolete
>Index: umc/python/setup/util.py >=================================================================== >--- umc/python/setup/util.py (Revision 41790) >+++ umc/python/setup/util.py (Arbeitskopie) >@@ -577,15 +577,19 @@ > > return pkglist > >-def get_installed_packages(): >- '''Returns a list of all installed packages on the system.''' >- cache = apt.Cache() >- return [ p.name for p in cache if p.is_installed ] >- > def get_installed_components(): > '''Returns a list of components that are currently fully installed on the system.''' >- allPackages = set(get_installed_packages()) >+ # get all component packages that are installed > allComponents = get_components() >+ cache = apt.Cache() >+ allPackages = set([ >+ ipackage >+ for icomp in allComponents >+ for ipackage in icomp['Packages'] >+ if cache[ipackage].is_installed >+ ]) >+ >+ # return installed components > return [ icomp for icomp in allComponents if not len(set(icomp['Packages']) - allPackages) ] > > # from univention-installer/installer/modules/70_net.py
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 31895
: 5303