(self)
| 597 | self.get_catalog_data() |
| 598 | |
| 599 | def pick_macos(self): |
| 600 | self.resize() |
| 601 | self.u.head("Select Max macOS Version") |
| 602 | print("Currently set to {}".format(self.num_to_macos(self.current_macos,for_url=False))) |
| 603 | print("") |
| 604 | print("M. Main Menu") |
| 605 | print("Q. Quit") |
| 606 | print("") |
| 607 | print("Please type the max macOS version for the catalog url") |
| 608 | menu = self.u.grab("eg. 10.15 for Catalina, 11 for Big Sur, 12 for Monterey: ") |
| 609 | if not len(menu): |
| 610 | self.pick_macos() |
| 611 | return |
| 612 | if menu[0].lower() == "m": |
| 613 | return |
| 614 | elif menu[0].lower() == "q": |
| 615 | self.u.custom_quit() |
| 616 | # At this point - we should have something in the proper format |
| 617 | version = self.macos_to_num(menu) |
| 618 | if not version: return |
| 619 | self.current_macos = version |
| 620 | self.save_settings() |
| 621 | # At this point, we should be good - set teh catalog |
| 622 | # data - but if it fails, remove the listed prods |
| 623 | if not self.get_catalog_data(): |
| 624 | self.catalog_data = None |
| 625 | self.u.grab("\nPress [enter] to return...") |
| 626 | self.pick_macos() |
| 627 | return |
| 628 | |
| 629 | def main(self, dmg = False): |
| 630 | lines = [] |
no test coverage detected