mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user