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

Method build_url

gibMacOS.py:182–188  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

180 return os_versions
181
182 def build_url(self, **kwargs):
183 catalog = kwargs.get("catalog", self.current_catalog).lower()
184 catalog = catalog if catalog.lower() in self.catalog_suffix else "publicrelease"
185 version = int(kwargs.get("version", self.current_macos))
186 return "https://swscan.apple.com/content/catalogs/others/index-{}.merged-1.sucatalog".format(
187 "-".join(reversed(self.get_macos_versions(self.min_macos,version,catalog=self.catalog_suffix.get(catalog,""))))
188 )
189
190 def get_catalog_data(self, local = False):
191 # Gets the data based on our current_catalog

Callers 3

get_catalog_dataMethod · 0.95
show_catalog_urlMethod · 0.95
mainMethod · 0.95

Calls 1

get_macos_versionsMethod · 0.95

Tested by

no test coverage detected