Brought back Excon for package downloading as the method recommended by async-http is unreliable, added support for importing games, repairer and updater tasks are both now simple subclasses of installer, implemented verify_files for checking installed files to prune download package list (currently causes Api.package_details to fail..., so disabled for now), misc. changes.

This commit is contained in:
2021-12-28 17:55:40 -06:00
parent f4aa666386
commit 82add3cc9d
12 changed files with 221 additions and 132 deletions

View File

@@ -1,27 +1,27 @@
class W3DHub
class ApplicationManager
class Repairer < Task
class Repairer < Installer
def type
:repairer
end
def execute_task
fail_fast
return false if failed?
# def execute_task
# fail_fast
# return false if failed?
manifests = fetch_manifests
return false if failed?
# manifests = fetch_manifests
# return false if failed?
packages = build_package_list(manifests)
return false if failed?
# packages = build_package_list(manifests)
# return false if failed?
verify_files(manifests, packages)
return false if failed?
# verify_files(manifests, packages)
# return false if failed?
# pp packages.select { |pkg| pkg.name == "misc" }
# # pp packages.select { |pkg| pkg.name == "misc" }
true
end
# true
# end
end
end
end