If the package event occurs before starting AMD, AMD doesn't know what
the operation is. When getting ok value with unknown operation,
AMD will uninstall and install the package.
Change-Id: I212b13f2ee77d4a3570ea77cda41278597b201a5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (!strcasecmp(key, "end")) {
_W("[__PKGMGR__] Package(%s) event(%s) - end", pkgid, val);
op = g_hash_table_lookup(pkg_pending, pkgid);
- if (op == NULL)
+ if (op == NULL) {
+ _W("Unknown operation");
+ __delete_on_event(&info);
+ __insert_on_event(&info);
return 0;
+ }
if (!strcasecmp(op, "uninstall")) {
ret = pkgmgrinfo_pkginfo_get_usr_disabled_pkginfo(