commit 931a8e983c2c0401079b60e76d36e35fc9ba3bf0
parent 88dec4535bc8e81dc7fa66495f0a9a78ce7a2988
Author: Dan Ballard <dan@mindstab.net>
Date: Tue, 24 Feb 2026 11:37:00 -0800
fixup! TB 41668: Tweaks to the Base Browser updater for Tor Browser
Fix lints for 148 and ruff
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/config/createprecomplete.py b/config/createprecomplete.py
@@ -28,6 +28,11 @@ def get_build_entries(root_path):
parent_dir_rel_path = root[len(root_path) + 1 :]
rel_path_file = os.path.join(parent_dir_rel_path, file_name)
rel_path_file = rel_path_file.replace("\\", "/")
+ tb_data_files = {
+ "TorBrowser/Data/Browser/profiles.ini",
+ "TorBrowser/Data/Browser/profile.default/bookmarks.html",
+ "TorBrowser/Data/Tor/torrc",
+ }
if not (
rel_path_file.endswith("channel-prefs.js")
or rel_path_file.endswith("update-settings.ini")
@@ -36,10 +41,7 @@ def get_build_entries(root_path):
or "/UpdateSettings.framework/" in rel_path_file
or rel_path_file.startswith("UpdateSettings.framework/")
or "distribution/" in rel_path_file
- or rel_path_file == "TorBrowser/Data/Browser/profiles.ini"
- or rel_path_file
- == "TorBrowser/Data/Browser/profile.default/bookmarks.html"
- or rel_path_file == "TorBrowser/Data/Tor/torrc"
+ or rel_path_file in tb_data_files
):
rel_file_path_set.add(rel_path_file)