mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
--list option displays available seedprograms to aid with erase-install
This commit is contained in:
parent
68065b8004
commit
1bfd0c71b7
@ -373,7 +373,7 @@ def get_unsupported_models(filename):
|
|||||||
if 'nonSupportedModels' in line:
|
if 'nonSupportedModels' in line:
|
||||||
unsupported_models = line.split(" ")[-1][:-1]
|
unsupported_models = line.split(" ")[-1][:-1]
|
||||||
return unsupported_models
|
return unsupported_models
|
||||||
|
|
||||||
|
|
||||||
def download_and_parse_sucatalog(sucatalog, workdir, ignore_cache=False):
|
def download_and_parse_sucatalog(sucatalog, workdir, ignore_cache=False):
|
||||||
'''Downloads and returns a parsed softwareupdate catalog'''
|
'''Downloads and returns a parsed softwareupdate catalog'''
|
||||||
@ -691,6 +691,9 @@ def main():
|
|||||||
# Output a plist of available updates and quit if list option chosen
|
# Output a plist of available updates and quit if list option chosen
|
||||||
if args.list:
|
if args.list:
|
||||||
plistlib.writePlist(pl, output_plist)
|
plistlib.writePlist(pl, output_plist)
|
||||||
|
print ('\n'
|
||||||
|
'Valid seeding programs are: %s'
|
||||||
|
% ', '.join(get_seeding_programs()))
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
# check for validity of specified build if argument supplied
|
# check for validity of specified build if argument supplied
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user