mirror of
https://github.com/munki/munki.git
synced 2026-05-03 02:40:32 -05:00
Remove no-longer-used getAppBundleID function from updatecheck.py
This commit is contained in:
Regular → Executable
-15
@@ -298,21 +298,6 @@ def analyzeInstalledPkgs():
|
||||
return pkgdata
|
||||
|
||||
|
||||
def getAppBundleID(path):
|
||||
"""Returns CFBundleIdentifier if available for application at path."""
|
||||
infopath = os.path.join(path, 'Contents', 'Info.plist')
|
||||
if os.path.exists(infopath):
|
||||
try:
|
||||
plist = FoundationPlist.readPlist(infopath)
|
||||
if 'CFBundleIdentifier' in plist:
|
||||
return plist['CFBundleIdentifier']
|
||||
except (AttributeError,
|
||||
FoundationPlist.NSPropertyListSerializationException):
|
||||
pass
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def download_installeritem(item_pl, installinfo, uninstalling=False):
|
||||
"""Downloads an (un)installer item.
|
||||
Returns True if the item was downloaded, False if it was already cached.
|
||||
|
||||
Reference in New Issue
Block a user