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:
Greg Neagle
2010-10-07 18:34:44 +00:00
parent 1dab884671
commit 4d9af60e5a
+10 -1
View File
@@ -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":