Add default values at manifest
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 11 May 2021 08:43:44 +0000 (17:43 +0900)
committer연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jungh.yeon@samsung.com>
Wed, 12 May 2021 07:12:49 +0000 (16:12 +0900)
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/rpk/step/configuration/step_parse_rpk_manifest.cc

index 73b30b0675fb719e52bb7f2f3cc0e5273a811c7b..ec8398642e6e747f253ecef8f19ce345f4721bbd 100644 (file)
@@ -35,6 +35,10 @@ const char kDescriptionKey[] = "manifest.description";
 
 const char kDependenciesKey[] = "manifest.dependencies";
 
+const char kInternalOnly[] = "internal-only";
+
+const char kRpk[] = "rpk";
+
 }  // namespace
 
 
@@ -225,7 +229,8 @@ bool StepParseRpkManifest::FillPackageInfo(manifest_x* manifest) {
   manifest->package = strdup(pkg_info->package().c_str());
   manifest->version = strdup(pkg_info->version().c_str());
   manifest->api_version = strdup(pkg_info->api_version().c_str());
-
+  manifest->installlocation = strdup(kInternalOnly);
+  manifest->type = strdup(kRpk);
 /*
   // TODO: add this code when manifest has variables for these
   manifest->res_type = strdup(pkg_info->res_type().c_str());