When getting blocking_applications from an Apple update dist file, de-dup the list of application-ids before finding matching applications.

This commit is contained in:
Greg Neagle
2013-02-21 18:44:37 -08:00
parent 141f3f24c6
commit 8bac537975
+2 -1
View File
@@ -436,7 +436,8 @@ class AppleUpdates(object):
must_close_app_ids.append(app.attributes['id'].value)
blocking_apps = []
for app_id in must_close_app_ids:
# use set() to eliminate any duplicate application ids
for app_id in set(must_close_app_ids):
unused_resultcode, unused_fileref, nsurl = LSFindApplicationForInfo(
0, app_id, None, None, None)
fileurl = str(nsurl)