itemindex needs to always be in sync with the for installlist loop to allow foundagain / deletion logic to work in forced installs

git-svn-id: http://munki.googlecode.com/svn/trunk@971 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Rob Middleton
2010-12-12 01:20:57 +00:00
parent edd0eee5dd
commit e2ef24363d
+1 -1
View File
@@ -464,6 +464,7 @@ def installWithInfo(dirpath, installlist, only_forced=False):
itemindex = 0
skipped_installs = []
for item in installlist:
itemindex = itemindex + 1
if only_forced:
if not item.get('forced_install'):
skipped_installs.append(item)
@@ -479,7 +480,6 @@ def installWithInfo(dirpath, installlist, only_forced=False):
if munkicommon.stopRequested():
return restartflag
if "installer_item" in item:
itemindex = itemindex + 1
display_name = item.get('display_name') or item.get('name') or \
item.get('manifestitem')
version_to_install = item.get('version_to_install','')