Move the position of printing logs 68/246068/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 23 Oct 2020 03:05:21 +0000 (12:05 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 23 Oct 2020 03:05:21 +0000 (12:05 +0900)
Change-Id: Ib8d12a2b58a1be80d1fab38d74b28306c134b72b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/amd_appinfo.c

index 18630e18446bd2361a11bdeaef713145c6d270b3..ea60f957750223309a8fdddd8e546a8853d00976 100644 (file)
@@ -1572,13 +1572,12 @@ static int __package_event_cb(uid_t target_uid, int req_id,
        pkgmgrinfo_pkginfo_h pkginfo;
 
        if (!strcasecmp(key, "start")) {
+               _W("[__PKGMGR__] Package(%s) event(%s) - start", pkgid, val);
+
                if (!strcasecmp(val, "uninstall") ||
                                !strcasecmp(val, "update") ||
-                               !strcasecmp(val, "move")) {
-                       _W("[__PKGMGR__] Package(%s) event(%s) - start",
-                                       pkgid, val);
+                               !strcasecmp(val, "move"))
                        __set_blocking(&info);
-               }
 
                g_hash_table_insert(pkg_pending, strdup(pkgid), strdup(val));
        }
@@ -1588,11 +1587,11 @@ static int __package_event_cb(uid_t target_uid, int req_id,
                if (op == NULL)
                        return 0;
 
+               _W("[__PKGMGR__] Package(%s) event(%s) - error", pkgid, val);
+
                if (!strcasecmp(op, "uninstall") ||
                                !strcasecmp(op, "update") ||
                                !strcasecmp(op, "move")) {
-                       _W("[__PKGMGR__] Package(%s) event(%s) - error",
-                                       pkgid, val);
                        __unset_blocking(&info, true);
                        _noti_send(AMD_NOTI_MSG_APPINFO_PACKAGE_UPDATE_ERROR,
                                        target_uid, 0, (void *)pkgid, NULL);