install: add duplicate case of beginning index 26/153426/1
authorjinh0.choi <jinh0.choi@samsung.com>
Thu, 28 Sep 2017 10:10:07 +0000 (19:10 +0900)
committerjinh0.choi <jinh0.choi@samsung.com>
Thu, 28 Sep 2017 10:10:07 +0000 (19:10 +0900)
Change-Id: Icb8f6d557f9b57b2204e9102ba7434b9fc50c1eb
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
tizen/src/util/extra_pkgs_install.c

index 85dcec3..037101a 100644 (file)
@@ -215,8 +215,13 @@ void epi_init(void)
                     }
                     char* checkDup = strcasestr(pkg_list, sub_dir_entry->d_name);
                     if (checkDup != NULL) {
+                        if (checkDup == pkg_list) {
+                            LOG_INFO("duplicated package : %s\n", sub_dir_entry->d_name);
+                            continue;
+                        }
                         checkDup--;
                         if (*checkDup == ' ') {
+                            LOG_INFO("duplicated package: %s\n", sub_dir_entry->d_name);
                             continue;
                         }
                     }