Block different type installation with same pkgid
[platform/core/appfw/app-installers.git] / src / common / step / pkgmgr / step_check_removable.cc
index 2ab1e2f..caf7c73 100644 (file)
@@ -36,16 +36,6 @@ Step::Status StepCheckRemovable::process() {
     return Status::OPERATION_NOT_ALLOWED;
   }
 
-  std::string pkg_type = pkg_query.Type();
-  // rpm package installed by tpk-backend
-  if (pkg_type == "rpm")
-    pkg_type = "tpk";
-  if (pkg_type != context_->pkg_type.get()) {
-    LOG(ERROR) << "Wrong use of backend : package's type [" << pkg_query.Type()
-               << "] mismatched backend [" << context_->pkg_type.get() << "]";
-    return Status::OPERATION_NOT_ALLOWED;
-  }
-
   return Status::OK;
 }