Merge branch 'master' of github.sec.samsung.net:appfw/pkgmgr-info into tizen
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 30 Apr 2021 02:45:28 +0000 (11:45 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 30 Apr 2021 02:45:28 +0000 (11:45 +0900)
1  2 
packaging/pkgmgr-info.spec
src/client/pkginfo_client.cc
src/pkgmgrinfo_appinfo.c
src/pkgmgrinfo_pkginfo.c
src/server/worker_thread.cc

Simple merge
@@@ -41,8 -44,16 +39,15 @@@ bool PkgInfoClient::SendRequest() 
      LOGE("Socket is not ready");
      return false;
    }
+   // CREATE_DB request type need to be executed directly by the caller
+   if (req_type_ == pkgmgr_common::ReqType::CREATE_DB) {
+     is_offline_ = true;
+     return RequestHandlerDirectAccess();
+   }
    if (!socket_->Connect()) {
      LOGE("Failed to connect client socket, try to direct access");
 -    socket_->Disconnect();
      is_offline_ = true;
      return RequestHandlerDirectAccess();
    }
Simple merge
Simple merge
Simple merge