Update installer signal policy 39/252939/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 3 Feb 2021 07:37:52 +0000 (16:37 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 3 Feb 2021 07:37:52 +0000 (16:37 +0900)
Tizen platform blocks install or update of user package
when same package is already installed as global.

Change-Id: I8e429c5ce5069a4ffc75ac44312ab6e98cb2c185
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/pkgmgr_signal.cc

index f5e8211..7446f73 100644 (file)
@@ -289,12 +289,7 @@ bool PkgmgrSignal::SetupUserList(const std::string& pkgid) {
       case RequestMode::USER:
         if (uid_ != uids[i])
           continue;
-        // if global pkg is installed,
-        // user pkg operation will be handled as update.
-        if (pkg_query_for_global.IsPackageInstalled(ci::RequestMode::GLOBAL))
-          user_list_.emplace_back(uids[i], RequestType::Update);
-        else
-          user_list_.emplace_back(uids[i], request_type_);
+        user_list_.emplace_back(uids[i], request_type_);
         break;
       default:
         user_list_.emplace_back(uids[i], request_type_);