Add condition when checking dotnet version 92/215792/2
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 16 Oct 2019 02:17:47 +0000 (11:17 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 16 Oct 2019 05:11:17 +0000 (14:11 +0900)
Preload-rw package could be dotnet package so
add condition to StepCheckTizenVersion to continue its installation
even if getting dotnet version through vconf has failed.

Change-Id: I6166f9c56eacd15e42f63ef42396303f3e1b4d61
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/step/configuration/step_check_tizen_version.cc

index 21f7ca4..1d49523 100644 (file)
@@ -73,7 +73,8 @@ bool StepCheckTizenVersion::ComparePlatformVersion(const std::string& version) {
 bool StepCheckTizenVersion::CompareDotnetVersion(const std::string& version) {
   int dotnet_api_level;
   if (vconf_get_int(kDotnetAPILevelVconfKey, &dotnet_api_level)) {
-    if (!context_->is_readonly_package.get()) {
+    if (!context_->is_readonly_package.get() &&
+        !context_->is_preload_rw_package.get()) {
       LOG(ERROR) << "Failed to get platform dotnet API level";
       return false;
     } else {