Files
swupd-client/include
Patrick McCarty 47cc319c0f Fix handling of added, deleted, and corrupt boot files
A user was running into issues installing the kernel-container bundle on
Clear Linux. Namely, all missing files marked as boot were not
installed.

The root issue is that the bundle-add action does not set the "fix"
global variable before calling ignore(), so ignore() mistakenly returns
true when considering boot files that are missing, but not marked
deleted.

Because 'bundle-add' should be installing new boot files, and 'verify
--fix' should be repairing boot files if they have mismatching hashes,
remove the global "fix" variable entirely, since in all current call
sites, the "fix" behavior is expected.

Also, add another call to ignore() in remove_orphaned_files() to ensure
that any file that should be ignored (including deleted boot files) are
not removed during a 'verify --fix'.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2016-03-10 11:43:31 -08:00
..
2016-03-07 14:23:18 -08:00
2016-02-24 09:34:13 -08:00
2016-02-24 09:34:13 -08:00
2016-03-07 14:23:18 -08:00
2016-02-24 09:34:13 -08:00