mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-09-06 21:51:30 +00:00
Add a file->bundle index file to go in a manufactured os-core-update-index bundle for faster swupd search operations on client. Instead of downloading all manifests in the current version the client can just bundle-add this bundle and use the file as its search helper. Because this file is part of a bundle and regular update it will be a candidate for renames and delta updating. Only present files and symlinks, not directories or deleted files, are added to this file. The file contains a tab-separated list of filename to bundlename mappings, sorted first by filename and secondarily by bundle size. This manifest has to be processed after all other manifests have been processed because the "subtracted" file lists have to be complete. This means we have to post-munge the MoM and full manifests with the new index file and new index bundle. An exception in bundle includes reading is also necessary because the first time includes are read this bundle will not exist. This means that bundles that include this index bundle will not perform manifest subtraction with that bundle. In this specific case it is okay because the only file in the manifest lives at a path that is present in every bundle (/usr/share/clear/...). If this changes in the future the impact will be small because this bundle will only ever provide one file. Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>