Commit 7cd3a533 authored by brizental's avatar brizental Committed by Pier Angelo Vendrame
Browse files

fixup! TB 43564: Modify ./mach bootstrap for Tor Browser

parent 9e4f78a8
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -313,8 +313,12 @@ class BuildBackend(LoggingMixin):
                paths["exts"].mkdir(parents=True, exist_ok=True)
                _infallible_symlink(noscript_location, noscript_target)

            expert_bundle_location = Path(config.substs["TOR_EXPERT_BUNDLE"])
            if expert_bundle_location.is_dir():
            expert_bundle_location = config.substs.get("TOR_EXPERT_BUNDLE")
            if expert_bundle_location:
                expert_bundle_location = Path(expert_bundle_location)
                if not expert_bundle_location.is_dir():
                    return

                self.log(
                    logging.INFO,
                    "_setup_tor_browser_environment",
@@ -354,9 +358,10 @@ class BuildBackend(LoggingMixin):
                        _infallible_symlink(file, target)

                # Setup Tor binary
                for item in (expert_bundle_location / "tor").iterdir():
                for item in Path(expert_bundle_location / "tor").iterdir():
                    target = paths["tor_bin"] / item.name
                    if target.is_file():

                    if item.is_file():
                        _infallible_symlink(item, target)

                # Set up licenses