mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Cacheids are computed for all static resources
Before this change cacheids were computed only for those static resources that were referenced from other resources via KIWIXCACHEID. A few static resources without such references existed. Now all resources under skin/ have their cacheids computed.
This commit is contained in:
@ -112,7 +112,10 @@ def copy_resource_list_file(src_path, dst_path):
|
||||
def preprocess_resources(resource_file_path):
|
||||
resource_filename = os.path.basename(resource_file_path)
|
||||
for resource in read_resource_file(resource_file_path):
|
||||
preprocess_resource(resource)
|
||||
if resource.startswith('skin/'):
|
||||
get_resource_revision(resource)
|
||||
else:
|
||||
preprocess_resource(resource)
|
||||
copy_resource_list_file(resource_file_path, os.path.join(OUT_DIR, resource_filename))
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Reference in New Issue
Block a user