All: add purpose parameter to setVersion calls
All calls to setVersion now include a purpose argument, changing the
purpose string from "unknown" to "other".
Change-Id: I201db1719333b51deead2dd99c9f637c782efd6c
Signed-off-by: Daniel Hsu <Daniel-Hsu@quantatw.com>
diff --git a/cpld/cpld_software_manager.cpp b/cpld/cpld_software_manager.cpp
index 6303135..e4793b3 100644
--- a/cpld/cpld_software_manager.cpp
+++ b/cpld/cpld_software_manager.cpp
@@ -50,7 +50,7 @@
std::unique_ptr<Software> software = std::make_unique<Software>(ctx, *cpld);
- software->setVersion(version);
+ software->setVersion(version, SoftwareVersion::VersionPurpose::Other);
std::set<RequestedApplyTimes> allowedApplyTimes = {
RequestedApplyTimes::Immediate, RequestedApplyTimes::OnReset};