File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,6 @@ jobs:
281
281
$env:FX_EXECUTABLE = 'C:\Program Files\Custom Firefox\firefox.exe'
282
282
Start-Process -FilePath $env:FX_EXECUTABLE -ArgumentList "--version" -Wait -NoNewWindow
283
283
pipenv run python choose_l10n_ci_set.py
284
- cat selected_l10n_mappings
285
284
"0" | Set-Content -Path "TEST_EXIT_CODE"
286
285
$SCRIPT_EXIT_CODE = 0
287
286
Get-Content "selected_l10n_mappings" | ForEach-Object {
Original file line number Diff line number Diff line change @@ -53,15 +53,18 @@ def process_changed_file(f, selected_mappings):
53
53
selected_mappings: the selected mappings dictionary (updated in place).
54
54
"""
55
55
split = f .split (SLASH )
56
- if f .startswith ("l10n_CM/sites/" ) or f .startswith ("l10n_CM/constants/" ):
56
+
57
+ if f .startswith (os .path .join ("l10n_CM" , "sites" )) or f .startswith (
58
+ os .path .join ("l10n_CM" , "constants" )
59
+ ):
57
60
# if constants or sites are changed, add a single site/region mapping entry.
58
61
site = split [2 ]
59
62
region = split [3 ]
60
63
region_path = os .path .join ("l10n_CM" , "region" , f"{ region } .json" )
61
64
# make sure the region mapping file exists before adding the mapping
62
65
if os .path .exists (region_path ):
63
66
selected_mappings [site ].add (region )
64
- elif f .startswith ("l10n_CM/ region/" ):
67
+ elif f .startswith (os . path . join ( "l10n_CM" , " region" ) ):
65
68
# if a region file is changed, add the region to each site mapping.
66
69
region = split [- 1 ].split ("." )[0 ]
67
70
with open (f , "r+" ) as f :
You can’t perform that action at this time.
0 commit comments