mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
Revert Python 3 chnages since they relied on a non-standard module.
This reverts commit adcff204f460bf5a977798661572947d29637a88.
This commit is contained in:
parent
adcff204f4
commit
c7c3ab6c31
@ -67,7 +67,7 @@ def get_seeding_program(sucatalog_url):
|
|||||||
'''Returns a seeding program name based on the sucatalog_url'''
|
'''Returns a seeding program name based on the sucatalog_url'''
|
||||||
try:
|
try:
|
||||||
seed_catalogs = plistlib.readPlist(SEED_CATALOGS_PLIST)
|
seed_catalogs = plistlib.readPlist(SEED_CATALOGS_PLIST)
|
||||||
for key, value in seed_catalogs.items():
|
for key, value in list(seed_catalogs.items()):
|
||||||
if sucatalog_url == value:
|
if sucatalog_url == value:
|
||||||
return key
|
return key
|
||||||
return ''
|
return ''
|
||||||
@ -341,7 +341,8 @@ def find_mac_os_installers(catalog):
|
|||||||
installers'''
|
installers'''
|
||||||
mac_os_installer_products = []
|
mac_os_installer_products = []
|
||||||
if 'Products' in catalog:
|
if 'Products' in catalog:
|
||||||
for product_key in catalog['Products'].keys():
|
product_keys = list(catalog['Products'].keys())
|
||||||
|
for product_key in product_keys:
|
||||||
product = catalog['Products'][product_key]
|
product = catalog['Products'][product_key]
|
||||||
try:
|
try:
|
||||||
if product['ExtendedMetaInfo'][
|
if product['ExtendedMetaInfo'][
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user