Reset data of PkgQuery at beginning of process 59/218059/4
authorSangyoon Jang <jeremy.jang@samsung.com>
Tue, 19 Nov 2019 06:36:10 +0000 (15:36 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Wed, 20 Nov 2019 02:09:55 +0000 (02:09 +0000)
The installer process can run multiple instance of same pkgid, so
PkgQuery should be reset.

Change-Id: Ibc2f6369e70831d10439cacbdaccbb9c94601906
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/common/app_query_interface.cc

index 1bd9a453b2536788ca56c10b44cc1ac62f6f9308..7404bee081a50188c793fda03263b66e298cc426 100644 (file)
@@ -20,7 +20,7 @@ bool AppQueryInterface::IsPkgInstalled(const std::string& arg,
     pkg_id = GetPkgIdFromPath(arg);
   if (pkg_id.empty())
     pkg_id = arg;
-  PkgQueryInterface pkg_query(pkg_id, uid);
+  PkgQueryInterface pkg_query(pkg_id, uid, true);
   return pkg_query.IsPackageInstalled(GetRequestMode(uid));
 }