Add attribute for lib rpk
[platform/core/appfw/pkgmgr-info.git] / src / server / pkginfo_internal.cc
index 40492ad..334d354 100644 (file)
@@ -1792,12 +1792,16 @@ int InsertPackageResInfo(const tizen_base::Database& db, manifest_x* mfx) {
   if (mfx->res_type == nullptr || mfx->res_version == nullptr)
     return 0;
 
+  if (mfx->lib == nullptr)
+    mfx->lib = strdup("false");
+
   auto q = tizen_base::Database::Sql(
       "INSERT INTO package_res_info (package, res_type,"
-      "  res_version) VALUES (?, ?, ?)")
+      "  res_version, lib) VALUES (?, ?, ?, ?)")
       .Bind(mfx->package)
       .Bind(mfx->res_type)
-      .Bind(mfx->res_version);
+      .Bind(mfx->res_version)
+      .Bind(mfx->lib);
 
   auto r = db.Exec(q);
   if (!r) {