mirror of
https://github.com/munki/munki.git
synced 2026-04-29 17:00:13 -05:00
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:
@@ -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','')
|
||||
|
||||
Reference in New Issue
Block a user