Files
mixer-tools/swupd
Matthew Johnson 15588a0b78 swupd: Add file index for swupd search
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>
2018-02-05 13:55:55 -08:00
..
2018-01-05 16:16:56 -08:00
2018-02-05 13:40:24 -08:00
2018-02-05 13:38:13 -08:00
2018-01-17 12:39:10 -08:00
2018-01-17 12:39:10 -08:00
2018-02-05 13:38:13 -08:00