return PKGMGR_INSTALLER_UNINSTALL_EVENT_STR;
else if (strcmp(pkg_type, PKGMGR_INSTALLER_CLEAR_CACHE_KEY_STR) == 0)
return pkg_type;
+ else if (pi->is_upgrade)
+ return PKGMGR_INSTALLER_UPGRADE_EVENT_STR;
+
switch (pi->request_type) {
case PKGMGR_REQ_INSTALL:
return -1;
}
- if (strcmp(key, PKGMGR_INSTALLER_START_KEY_STR) == 0 &&
- strcmp(val, PKGMGR_INSTALLER_UPGRADE_EVENT_STR) == 0)
- pi->request_type = PKGMGR_REQ_UPGRADE;
-
r = __send_signal_for_event(pi, pkg_type, pkgid, NULL, key, val);
return r;
return -1;
}
- if (strcmp(key, PKGMGR_INSTALLER_START_KEY_STR) == 0 &&
- strcmp(val, PKGMGR_INSTALLER_UPGRADE_EVENT_STR) == 0)
- pi->request_type = PKGMGR_REQ_UPGRADE;
-
r = __send_signal_for_event_for_uid(pi, uid, pkg_type, pkgid, NULL,
key, val);