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:
Veloman Yunkan
2022-10-11 14:32:57 +04:00
parent b9f60ecfe9
commit 415ec41099
2 changed files with 13 additions and 10 deletions

View File

@ -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__":