summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjin0.kim <jin0.kim@samsung.com>2016-03-31 14:29:28 +0830
committerjin0.kim <jin0.kim@samsung.com>2016-03-31 15:11:15 +0830
commit51915762077e432cccf2e2f707f847afb55220f0 (patch)
tree3483a0e16b4558cb6279825466d60a2e3c48eb08
parentc26e43610895d317b89db8476294ab171afbf01d (diff)
downloadquickpanel-51915762077e432cccf2e2f707f847afb55220f0.tar.gz
quickpanel-51915762077e432cccf2e2f707f847afb55220f0.tar.bz2
quickpanel-51915762077e432cccf2e2f707f847afb55220f0.zip
Change-Id: Ic1b8a3b1fad3bca664e5eb28d56387a9d020a8ac
-rwxr-xr-xdaemon/service/uninstall.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/daemon/service/uninstall.c b/daemon/service/uninstall.c
index 9ae35ed..df7e953 100755
--- a/daemon/service/uninstall.c
+++ b/daemon/service/uninstall.c
@@ -83,10 +83,13 @@ static void _pkgmgr_event_cb(const char *type, const char *package,
return;
}
- SDBG("package:%s event_type:%s event_state:%s", package, event_type, event_state);
+ if (event_type != PACKAGE_MANAGER_EVENT_TYPE_UNINSTALL) {
+ return;
+ }
+
+ SDBG("type : %s event_type:%d event_state:%d [%s]", type, event_type, event_state, package);
- if (event_type == PACKAGE_MANAGER_EVENT_TYPE_UNINSTALL &&
- event_state == PACKAGE_MANAGER_EVENT_STATE_STARTED) {
+ if (event_state == PACKAGE_MANAGER_EVENT_STATE_STARTED) {
DBG("Pkg:%s is being uninstalled", package);
@@ -97,8 +100,7 @@ static void _pkgmgr_event_cb(const char *type, const char *package,
} else {
ERR("failed to create event item");
}
- } else if (event_type == PACKAGE_MANAGER_EVENT_TYPE_UNINSTALL &&
- event_state == PACKAGE_MANAGER_EVENT_STATE_COMPLETED) {
+ } else if (event_state == PACKAGE_MANAGER_EVENT_STATE_COMPLETED) {
if (_is_item_exist(package, 1) == 1) {
DBG("Pkg:%s is uninstalled, delete related resource", package);