Generate installs items for RIBS and HD in the same code section

- we need to create an installs array for either installs type but we can have any combination of the two, so create it up front so ordering doesn't matter
This commit is contained in:
Timothy Sutton
2016-06-25 14:41:55 -04:00
parent c665a243f6
commit ff374b176e
+19 -13
View File
@@ -1251,17 +1251,6 @@ def getAdobeCatalogInfo(mountpoint, pkgname=""):
mediasignature = cataloginfo['adobe_install_info'].get(
"media_signature")
mediasignatures = [mediasignature]
if mediasignatures:
# make a default <key>installs</key> array
uninstalldir = "/Library/Application Support/Adobe/Uninstall"
installs = []
for mediasignature in mediasignatures:
signaturefile = mediasignature + ".db"
filepath = os.path.join(uninstalldir, signaturefile)
installitem = {}
installitem['path'] = filepath
installitem['type'] = 'file'
installs.append(installitem)
# Determine whether we have HD media as well in this installer
hd_metadata_dirs = [
@@ -1275,12 +1264,29 @@ def getAdobeCatalogInfo(mountpoint, pkgname=""):
os.path.join(dirpath, 'HD'), sap_code)
hd_app_infos.append(hd_app_info)
# Make custom installs items for HD installers, but using only HDMedias
# installs keys will be populated if we have either RIBS
# or HD installers, which may be mixed together in one
# CCP package
if mediasignatures or hd_app_infos:
installs = []
# media signatures are used for RIBS (CS5 to CC mid-2015)
if mediasignatures:
# make a default <key>installs</key> array
uninstalldir = "/Library/Application Support/Adobe/Uninstall"
for mediasignature in mediasignatures:
signaturefile = mediasignature + ".db"
filepath = os.path.join(uninstalldir, signaturefile)
installitem = {}
installitem['path'] = filepath
installitem['type'] = 'file'
installs.append(installitem)
# Custom installs items for HD installers seem to need only HDMedias
# from optionXML.xml with a MediaType of 'Product' and their
# 'core' packages (e.g. language packs are 'non-core')
if hd_app_infos:
uninstalldir = '/Library/Application Support/Adobe/Installers/uninstallXml'
installs = []
product_saps = [
prod['SAPCode'] for
prod in option_xml_info['products']