item_updater: Skip functional version when freeing space
After the code update, the newly activated version would have a priority
value of 0. If the host is not rebooted, the functional version would
still be the old version but it'd now have a priority value of 1.
If another code update is requested at this point, the function that
frees up space would try to remove the highest priority version which
is the running one.
Add a check to ignore the version if it's the functional one, also
allow a version of priority 0 to be deleted.
Change-Id: I077ea2eeff68e07af533103f292be592326b5111
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed