Skip to content

Commit eb81937

Browse files
committed
FIX: Cache invalidation problem for translations.
dirname for .../fr/3.6/ was giving .../fr/, the rest was constructed from here, purging without the /fr/. Building from the webroot make more sense semantically than "the parent folder", and it fixees the issue.
1 parent 381be1e commit eb81937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def build_one(version, git_branch, isdev, quick, venv, build_root, www_root,
226226

227227
logging.info("%s files changed", len(changed))
228228
if changed and not skip_cache_invalidation:
229-
targets_dir = os.path.dirname(target)
229+
targets_dir = www_root
230230
prefixes = shell_out('find -L {} -samefile {}'.format(
231231
targets_dir, target)).replace(targets_dir + '/', '')
232232
prefixes = [prefix + '/' for prefix in prefixes.split('\n') if prefix]

0 commit comments

Comments
 (0)