Fix sending upgrade event 75/77775/3 accepted/tizen/common/20160706.141401 accepted/tizen/ivi/20160705.044604 accepted/tizen/mobile/20160705.044436 accepted/tizen/tv/20160705.044547 accepted/tizen/wearable/20160705.044500 submit/tizen/20160704.042542
authorSangyoon Jang <s89.jang@samsung.com>
Fri, 1 Jul 2016 05:27:35 +0000 (14:27 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Fri, 1 Jul 2016 06:30:53 +0000 (15:30 +0900)
Change-Id: I1ecf7a0b3a283c2e3a6bffff838fd6f083043ad7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
installer/pkgmgr_installer.c

index 35974fccb3533c2705ae29d97d26d4d5bc358eb2..9c8f0a0de2641c8e3976497535cd6d07bb7379c6 100644 (file)
@@ -545,7 +545,8 @@ pkgmgr_installer_send_signal(pkgmgr_installer *pi,
                return -1;
        }
 
-       if (strcmp(key, PKGMGR_INSTALLER_UPGRADE_EVENT_STR) == 0)
+       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, key, val);