mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-08 06:31:50 +00:00
The current implementation is not setup to optimally load manifests and attempt deltas. This changes the flow to be as follows: 1.) Load current Manifest.MoM 2.) Load server Manifest.MoM 3.) Recurse and load all current manifests, since we know exactly which are needed already 4.) Link current and server Manifest.MoMs, setting versions and peers 5.) Load server manifests recursively adding their includes 6.) Recurse the server manifests to find and load any new included bundles 7.) Link current and server Manifest.MoMs again to account for new bundles When loading the server manifests, deltas will attempt to be applied to current manifests before doing a full download. Following this flow enables swupd to load manifests in a logical order, and short circuit trying to reload them later on as manifests are recursed for includes again later. Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>