MCPcopy
hub / github.com/corpnewt/gibMacOS / get_installers

Method get_installers

gibMacOS.py:231–246  ·  view source on GitHub ↗
(self, plist_dict = None)

Source from the content-addressed store, hash-verified

229 return True
230
231 def get_installers(self, plist_dict = None):
232 if not plist_dict:
233 plist_dict = self.catalog_data
234 if not plist_dict:
235 return []
236 mac_prods = []
237 for p in plist_dict.get("Products", {}):
238 if not self.find_recovery:
239 val = plist_dict.get("Products",{}).get(p,{}).get("ExtendedMetaInfo",{}).get("InstallAssistantPackageIdentifiers",{})
240 if val.get("OSInstall",{}) == "com.apple.mpkg.OSInstall" or val.get("SharedSupport","").startswith("com.apple.pkg.InstallAssistant"):
241 mac_prods.append(p)
242 else:
243 # Find out if we have any of the recovery_suffixes
244 if any(x for x in plist_dict.get("Products",{}).get(p,{}).get("Packages",[]) if x["URL"].endswith(self.recovery_suffixes)):
245 mac_prods.append(p)
246 return mac_prods
247
248 def get_build_version(self, dist_dict):
249 build = version = name = "Unknown"

Callers 2

set_prodsMethod · 0.95
mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected