Fix wrong CommandType
[platform/core/appfw/pkgmgr-info.git] / src / manager / pkginfo_manager.cc
index 1145bc9..1204bf5 100644 (file)
@@ -942,7 +942,7 @@ extern "C" EXPORT_API int _parser_clear_cache_memory_db(uid_t uid) {
 extern "C" EXPORT_API int _parser_update_pending_cache(const char* pkgid) {
   std::shared_ptr<pcp::AbstractParcelable> parcelable(
       new pcp::CommandParcelable(_getuid(),
-          CommandType::RemoveCache, { pkgid }));
+          CommandType::UpdatePendingCache, { pkgid }));
 
   pkgmgr_client::PkgInfoClient client(parcelable, _getuid(),
                                       pkgmgr_common::ReqType::COMMAND);