Fix for updatecheck.getAutoRemovalItems() to properly exclude items in a managed_installs list that are specified with version as well as name.

git-svn-id: http://munki.googlecode.com/svn/trunk@951 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2010-12-06 18:46:46 +00:00
parent 344baea859
commit 4142e8fab8
+4 -2
View File
@@ -1173,9 +1173,11 @@ def getAutoRemovalItems(installinfo, cataloglist):
for catalogname in cataloglist:
if catalogname in CATALOG.keys():
autoremovalnames += CATALOG[catalogname]['autoremoveitems']
processed_installs_names = [nameAndVersion(item)[0]
for item in installinfo['processed_installs']]
autoremovalnames = [item for item in autoremovalnames
if item not in installinfo['processed_installs']
if item not in processed_installs_names
and item not in installinfo['processed_uninstalls']]
return autoremovalnames