From 38b11afb22b31002200d02e955e969bcda9c121c Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Wed, 7 Feb 2024 15:21:34 +0100 Subject: bootstrap: More resiliently install Deiban-like platform dependencies (#31281) 1. First check to see if a package is available before trying to install it. This means that we always do our best to install everything, but don't fail if we cannot. 2. Install crown and taplo first. This means that if the platform-specific bits fail, we still install Servo-specific dependencies. --- python/servo/platform/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/servo/platform/base.py') diff --git a/python/servo/platform/base.py b/python/servo/platform/base.py index e6d3e955cda..cb0c1be527b 100644 --- a/python/servo/platform/base.py +++ b/python/servo/platform/base.py @@ -55,9 +55,9 @@ class Base: return False def bootstrap(self, force: bool): - installed_something = self._platform_bootstrap(force) - installed_something |= self.install_taplo(force) + installed_something = self.install_taplo(force) installed_something |= self.install_crown(force) + installed_something |= self._platform_bootstrap(force) if not installed_something: print("Dependencies were already installed!") -- cgit v1.2.3