mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 15:12:58 +00:00
pre-commit: make caches dict generic
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8273>
This commit is contained in:
parent
72f380c739
commit
30861a14b2
1 changed files with 5 additions and 4 deletions
|
@ -162,15 +162,16 @@ def run_doc_checks(modified_files):
|
|||
# dynamic library associated with the hotdoc configuration files that need
|
||||
# rebuilding, and only update the caches using those libraries.
|
||||
# This is done in order to minimize spurious diffs as much as possible.
|
||||
caches = {
|
||||
'gstreamer': []
|
||||
}
|
||||
caches = {}
|
||||
|
||||
(confs_need_rebuild, caches_need_rebuild) = get_hotdoc_confs_to_rebuild(builddir, modified_files)
|
||||
|
||||
for libpath in caches_need_rebuild:
|
||||
cache_project = Path(libpath).relative_to(builddir).parts[1]
|
||||
caches[cache_project].append(libpath)
|
||||
if cache_project not in caches:
|
||||
caches[cache_project] = [libpath]
|
||||
else:
|
||||
caches[cache_project].append(libpath)
|
||||
|
||||
for (subproject, libpaths) in caches.items():
|
||||
build_cache(builddir, subproject, libpaths)
|
||||
|
|
Loading…
Reference in a new issue