item_updater: Ignore base version when trying to free up priority.

- There is a bug in our code where a user can try to allocate the
  existing priority of a version to itself and this would cause
  all subsequent priorities to be incremented by 2 instead of 1.
- By checking the base versionId we can skip the operation to free
  the priority of the base version since it will be reassigned.

Resolves openbmc/openbmc#2075

Change-Id: Ice21d701bb2e964c5734273f4e8a3821b96f4830
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
3 files changed
tree: cbc56c5deb74d40ead4d1cf8898a791d9bb8ca30
  1. m4/
  2. test/
  3. .gitignore
  4. activation.cpp
  5. activation.hpp
  6. bootstrap.sh
  7. configure.ac
  8. generate-squashfs
  9. item_updater.cpp
  10. item_updater.hpp
  11. item_updater_main.cpp
  12. LICENSE
  13. Makefile.am
  14. README.md
  15. serialize.cpp
  16. serialize.hpp
  17. version.cpp
  18. version.hpp
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.