Fix parameter of IsPackageInstalled 83/160483/1
authorSeungha Son <seungha.son@samsung.com>
Thu, 2 Nov 2017 07:52:27 +0000 (16:52 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 16 Nov 2017 08:26:23 +0000 (17:26 +0900)
related patch : https://review.tizen.org/gerrit/#/c/157443/

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ifb4bcbee350e4d9587e4efcf89a5e924f2bcd2f2

src/tpk/external_dirs.cc

index 158145f96e09ecde2045f1a36d5cfc6f33131d2e..946d03aa0bb7604f90665e062ca1e41db935ffdc 100644 (file)
@@ -60,7 +60,7 @@ bool DeleteExternalAppdataDirectories(const std::string& pkgid,
     case ci::RequestMode::USER: {
       // if package is globally installed, leave directories
       ci::PkgQueryInterface pkg_query(pkgid, GLOBAL_USER);
-      if (pkg_query.IsPackageInstalled())
+      if (pkg_query.IsPackageInstalled(ci::RequestMode::GLOBAL))
         return true;
 
       LOG(DEBUG) << "Removing external directories for user: " << uid;