#NEWLINE# def getAdobeCatalogInfo( mountpoint , pkgname = '' ) : #NEWLINE# #INDENT# 'Used by makepkginfo to build pkginfo data for Adobe\n    installers/updaters' #NEWLINE# deploymentmanager = findAdobeDeploymentManager ( mountpoint ) #NEWLINE# if deploymentmanager : #NEWLINE# #INDENT# dirpath = os . path . dirname ( deploymentmanager ) #NEWLINE# option_xml_file = os . path . join ( deploymentmanager , 'optionXML.xml' ) #NEWLINE# option_xml_info = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if os . path . exists ( option_xml_file ) : #NEWLINE# #INDENT# option_xml_info = parseOptionXML ( option_xml_file ) #NEWLINE# #UNINDENT# cataloginfo = getAdobePackageInfo ( dirpath ) #NEWLINE# if cataloginfo : #NEWLINE# #INDENT# if ( option_xml_info . get ( 'packager_id' ) == 'CloudPackager' ) : #NEWLINE# #INDENT# cataloginfo [ 'display_name' ] = option_xml_info . get ( 'package_name' , 'unknown' ) #NEWLINE# cataloginfo [ 'name' ] = cataloginfo [ 'display_name' ] . replace ( ' ' , '' ) #NEWLINE# cataloginfo [ 'uninstallable' ] = True #NEWLINE# cataloginfo [ 'uninstall_method' ] = 'AdobeCCPUninstaller' #NEWLINE# cataloginfo [ 'installer_type' ] = 'AdobeCCPInstaller' #NEWLINE# cataloginfo [ 'minimum_os_version' ] = '10.6.8' #NEWLINE# mediasignatures = [ item [ 'mediaSignature' ] for item in option_xml_info . get ( 'products' , [ ] ) if ( 'mediaSignature' in item ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cataloginfo [ 'name' ] = cataloginfo [ 'display_name' ] . replace ( ' ' , '' ) #NEWLINE# cataloginfo [ 'uninstallable' ] = True #NEWLINE# cataloginfo [ 'uninstall_method' ] = 'AdobeCS5AAMEEPackage' #NEWLINE# cataloginfo [ 'installer_type' ] = 'AdobeCS5AAMEEPackage' #NEWLINE# cataloginfo [ 'minimum_os_version' ] = '10.5.0' #NEWLINE# cataloginfo [ 'adobe_install_info' ] = getAdobeInstallInfo ( installdir = dirpath ) #NEWLINE# mediasignature = cataloginfo [ 'adobe_install_info' ] . get ( 'media_signature' ) #NEWLINE# mediasignatures = [ mediasignature ] #NEWLINE# #UNINDENT# if mediasignatures : #NEWLINE# #INDENT# uninstalldir = '/Library/Application Support/Adobe/Uninstall' #NEWLINE# installs = [ ] #NEWLINE# for mediasignature in mediasignatures : #NEWLINE# #INDENT# signaturefile = ( mediasignature + '.db' ) #NEWLINE# filepath = os . path . join ( uninstalldir , signaturefile ) #NEWLINE# installitem = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# installitem [ 'path' ] = filepath #NEWLINE# installitem [ 'type' ] = 'file' #NEWLINE# installs . append ( installitem ) #NEWLINE# #UNINDENT# cataloginfo [ 'installs' ] = installs #NEWLINE# #UNINDENT# return cataloginfo #NEWLINE# #UNINDENT# #UNINDENT# installapp = findInstallApp ( mountpoint ) #NEWLINE# if installapp : #NEWLINE# #INDENT# cataloginfo = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# cataloginfo [ 'installer_type' ] = 'AdobeCS5Installer' #NEWLINE# return cataloginfo #NEWLINE# #UNINDENT# installapp = findAdobePatchInstallerApp ( mountpoint ) #NEWLINE# if os . path . exists ( installapp ) : #NEWLINE# #INDENT# cataloginfo = getAdobePackageInfo ( mountpoint ) #NEWLINE# if cataloginfo : #NEWLINE# #INDENT# cataloginfo [ 'name' ] = cataloginfo [ 'display_name' ] . replace ( ' ' , '' ) #NEWLINE# cataloginfo [ 'uninstallable' ] = False #NEWLINE# cataloginfo [ 'installer_type' ] = 'AdobeCS5PatchInstaller' #NEWLINE# if pkgname : #NEWLINE# #INDENT# cataloginfo [ 'package_path' ] = pkgname #NEWLINE# #UNINDENT# installs = [ ] #NEWLINE# uninstalldir = '/Library/Application Support/Adobe/Uninstall' #NEWLINE# for payload in cataloginfo . get ( 'payloads' , [ ] ) : #NEWLINE# #INDENT# if ( payload . get ( 'display_name' , '' ) == cataloginfo [ 'display_name' ] ) : #NEWLINE# #INDENT# if ( 'AdobeCode' in payload ) : #NEWLINE# #INDENT# dbfile = ( payload [ 'AdobeCode' ] + '.db' ) #NEWLINE# filepath = os . path . join ( uninstalldir , dbfile ) #NEWLINE# installitem = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# installitem [ 'path' ] = filepath #NEWLINE# installitem [ 'type' ] = 'file' #NEWLINE# installs . append ( installitem ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( installs == [ ] ) : #NEWLINE# #INDENT# for payload in cataloginfo . get ( 'payloads' , [ ] ) : #NEWLINE# #INDENT# if ( 'AdobeCode' in payload ) : #NEWLINE# #INDENT# if ( ( 'LangPack' in payload . get ( 'display_name' ) ) or ( 'Language Files' in payload . get ( 'display_name' ) ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# dbfile = ( payload [ 'AdobeCode' ] + '.db' ) #NEWLINE# filepath = os . path . join ( uninstalldir , dbfile ) #NEWLINE# installitem = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# installitem [ 'path' ] = filepath #NEWLINE# installitem [ 'type' ] = 'file' #NEWLINE# installs . append ( installitem ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# cataloginfo [ 'installs' ] = installs #NEWLINE# return cataloginfo #NEWLINE# #UNINDENT# #UNINDENT# pkgroot = os . path . join ( mountpoint , pkgname ) #NEWLINE# adobeinstallxml = os . path . join ( pkgroot , 'AdobeUberInstaller.xml' ) #NEWLINE# if os . path . exists ( adobeinstallxml ) : #NEWLINE# #INDENT# cataloginfo = getAdobePackageInfo ( pkgroot ) #NEWLINE# if cataloginfo : #NEWLINE# #INDENT# cataloginfo [ 'name' ] = cataloginfo [ 'display_name' ] . replace ( ' ' , '' ) #NEWLINE# cataloginfo [ 'uninstallable' ] = True #NEWLINE# cataloginfo [ 'uninstall_method' ] = 'AdobeUberUninstaller' #NEWLINE# cataloginfo [ 'installer_type' ] = 'AdobeUberInstaller' #NEWLINE# if pkgname : #NEWLINE# #INDENT# cataloginfo [ 'package_path' ] = pkgname #NEWLINE# #UNINDENT# return cataloginfo #NEWLINE# #UNINDENT# #UNINDENT# setuppath = findSetupApp ( mountpoint ) #NEWLINE# if setuppath : #NEWLINE# #INDENT# cataloginfo = getAdobeSetupInfo ( mountpoint ) #NEWLINE# if cataloginfo : #NEWLINE# #INDENT# cataloginfo [ 'name' ] = cataloginfo [ 'display_name' ] . replace ( ' ' , '' ) #NEWLINE# cataloginfo [ 'installer_type' ] = 'AdobeSetup' #NEWLINE# if ( cataloginfo . get ( 'AdobeSetupType' ) == 'ProductInstall' ) : #NEWLINE# #INDENT# cataloginfo [ 'uninstallable' ] = True #NEWLINE# cataloginfo [ 'uninstall_method' ] = 'AdobeSetup' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cataloginfo [ 'description' ] = 'Adobe updater' #NEWLINE# cataloginfo [ 'uninstallable' ] = False #NEWLINE# cataloginfo [ 'update_for' ] = [ 'PleaseEditMe-1.0.0.0.0' ] #NEWLINE# #UNINDENT# return cataloginfo #NEWLINE# #UNINDENT# #UNINDENT# acrobatpatcherapp = findAcrobatPatchApp ( mountpoint ) #NEWLINE# if acrobatpatcherapp : #NEWLINE# #INDENT# cataloginfo = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# cataloginfo [ 'installer_type' ] = 'AdobeAcrobatUpdater' #NEWLINE# cataloginfo [ 'uninstallable' ] = False #NEWLINE# plist = getBundleInfo ( acrobatpatcherapp ) #NEWLINE# cataloginfo [ 'version' ] = munkicommon . getVersionString ( plist ) #NEWLINE# cataloginfo [ 'name' ] = 'AcrobatPro9Update' #NEWLINE# cataloginfo [ 'display_name' ] = 'Adobe Acrobat Pro Update' #NEWLINE# cataloginfo [ 'update_for' ] = [ 'AcrobatPro9' ] #NEWLINE# cataloginfo [ 'RestartAction' ] = 'RequireLogout' #NEWLINE# cataloginfo [ 'requires' ] = [ ] #NEWLINE# cataloginfo [ 'installs' ] = [ { #NEWLINE# #INDENT# 'CFBundleIdentifier' : 'com.adobe.Acrobat.Pro' , #NEWLINE# 'CFBundleName' : 'Acrobat' , #NEWLINE# 'CFBundleShortVersionString' : cataloginfo [ 'version' ] , #NEWLINE# 'path' : '/Applications/Adobe Acrobat 9 Pro/Adobe Acrobat Pro.app' , #NEWLINE# 'type' : 'application' , #NEWLINE# #UNINDENT# } ] #NEWLINE# return cataloginfo #NEWLINE# #UNINDENT# return None