During image creation stage, vconf API does not work.
Change-Id: Ie57b403463fe6e43c9095c0e55291f4eed247b27
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
bool StepCheckTizenVersion::CompareDotnetVersion(const std::string& version) {
int dotnet_api_level;
if (vconf_get_int(kDotnetAPILevelVconfKey, &dotnet_api_level)) {
- LOG(ERROR) << "Failed to get platform dotnet API level";
- return false;
+ if (!context_->is_readonly_package.get()) {
+ LOG(ERROR) << "Failed to get platform dotnet API level";
+ return false;
+ } else {
+ // During platform image creation stage, vconf API does not work and
+ // version check fails. This is workaround for this case.
+ return true;
+ }
}
if (CompareVersion(std::to_string(dotnet_api_level), version) < 0) {
LOG(ERROR) << "Package's dotnet API level(" << version << ") is higher "