mirror of
https://github.com/munki/munki.git
synced 2026-04-22 20:48:36 -05:00
updateAcrobatPro: when looking for the apps to update, first look in /Applications/Adobe Acrobat 9 Pro/ before asking system_profiler to search.
git-svn-id: http://munki.googlecode.com/svn/trunk@782 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -892,9 +892,18 @@ def updateAcrobatPro(dmgpath):
|
||||
|
||||
(appname, status) = line.split("\t")
|
||||
munkicommon.display_status("Searching for %s" % appname)
|
||||
candidates = [item for item in munkicommon.getAppData()
|
||||
# first look in the obvious place
|
||||
pathname = os.path.join("/Applications/Adobe Acrobat 9 Pro", appname)
|
||||
if os.path.exists(pathname):
|
||||
item = {}
|
||||
item['path'] = pathname
|
||||
candidates = [item]
|
||||
else:
|
||||
# use system_profiler to search for the app
|
||||
candidates = [item for item in munkicommon.getAppData()
|
||||
if item.get("path","").endswith("/" + appname) and
|
||||
not item.get("path","").startswith("/Volumes")]
|
||||
|
||||
# hope there's only one!
|
||||
if len(candidates) == 0:
|
||||
if status == "optional":
|
||||
|
||||
Reference in New Issue
Block a user