mirror of
https://github.com/munki/munki.git
synced 2026-04-22 04:28:21 -05:00
More changes to prep for CS5 deployment.
git-svn-id: http://munki.googlecode.com/svn/trunk@543 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -283,7 +283,7 @@ def runAdobeInstallTool(cmd, number_of_payloads=0):
|
||||
while (p.poll() == None):
|
||||
time.sleep(1)
|
||||
loginfo = getAdobeInstallerLogInfo()
|
||||
# installing
|
||||
# CS3/CS4 installing
|
||||
if loginfo.startswith("Mounting payload image at "):
|
||||
# increment payload_completed_count
|
||||
payload_completed_count = payload_completed_count + 1
|
||||
@@ -295,6 +295,17 @@ def runAdobeInstallTool(cmd, number_of_payloads=0):
|
||||
payloadname = os.path.splitext(payloadfilename)[0]
|
||||
munkicommon.display_status("Installing payload: %s" %
|
||||
payloadname)
|
||||
|
||||
# CS5 installing
|
||||
if loginfo.startswith("Beginning installation for payload at"):
|
||||
# increment payload_completed_count
|
||||
payload_completed_count = payload_completed_count + 1
|
||||
if munkicommon.munkistatusoutput and number_of_payloads:
|
||||
munkistatus.percent(getPercent(payload_completed_count,
|
||||
number_of_payloads))
|
||||
munkicommon.disney_status("Installed Adobe payload %s" %
|
||||
payload_completed_count)
|
||||
|
||||
# uninstalling
|
||||
if loginfo.startswith("Physical payload uninstall result"):
|
||||
# increment payload_completed_count
|
||||
@@ -662,6 +673,22 @@ def getAdobeCatalogInfo(mountpoint, pkgname):
|
||||
'''Used by makepkginfo to build pkginfo data for Adobe
|
||||
installers/updaters'''
|
||||
|
||||
# Look for Install.app (CS5 install)
|
||||
installapp = os.path.join(mountpoint, "Install.app")
|
||||
if os.path.exists(installapp):
|
||||
# this is a CS5 installer disk image
|
||||
cataloginfo = getAdobePackageInfo(mountpoint)
|
||||
if cataloginfo:
|
||||
# add some more data
|
||||
cataloginfo['name'] = \
|
||||
cataloginfo['display_name'].replace(" ",'')
|
||||
cataloginfo['uninstallable'] = True
|
||||
cataloginfo['uninstall_method'] = "AdobeCS5Installer"
|
||||
cataloginfo['installer_type'] = "AdobeCS5Installer"
|
||||
if pkgname:
|
||||
cataloginfo['package_path'] = pkgname
|
||||
return cataloginfo
|
||||
|
||||
# Look for AdobeUberInstaller items (CS4 install)
|
||||
pkgroot = os.path.join(mountpoint, pkgname)
|
||||
adobeinstallxml = os.path.join(pkgroot, "AdobeUberInstaller.xml")
|
||||
|
||||
Reference in New Issue
Block a user