mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
list shows latest version
This commit is contained in:
parent
f2e9a63872
commit
4c4bdd8671
@ -1068,7 +1068,7 @@ def main():
|
||||
|
||||
# determine the latest valid build ID and select this
|
||||
# when using auto, os and version options
|
||||
if args.auto or args.version or args.os:
|
||||
if args.auto or args.version or args.os or args.list:
|
||||
if args.beta or "Beta" not in product_info[product_id]["title"]:
|
||||
try:
|
||||
latest_valid_build
|
||||
@ -1153,6 +1153,18 @@ def main():
|
||||
|
||||
# Output a plist of available updates and quit if list option chosen
|
||||
if args.list:
|
||||
if args.os:
|
||||
print("\nBuild checked against OS filter: %s" % (args.os))
|
||||
pl["validity_filter"] = "OS: %s" % (args.os)
|
||||
elif args.version:
|
||||
print("\nBuild checked against version filter: %s" % (args.version))
|
||||
pl["validity_filter"] = "Version: %s" % (args.version)
|
||||
try:
|
||||
print("\nLatest valid build: %s (# %s)" % (latest_valid_build, answer))
|
||||
pl["latest_valid_build"] = latest_valid_build
|
||||
except NameError:
|
||||
pl["latest_valid_build"] = ""
|
||||
print("\nNo valid build found")
|
||||
write_plist(pl, output_plist)
|
||||
print("\nValid seeding programs are: %s\n" % ", ".join(get_seeding_programs()))
|
||||
exit(0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user