extra: add condition for package duplication 89/145889/1
authorjinh0.choi <jinh0.choi@samsung.com>
Thu, 24 Aug 2017 06:49:18 +0000 (15:49 +0900)
committerjinh0.choi <jinh0.choi@samsung.com>
Thu, 24 Aug 2017 06:49:18 +0000 (15:49 +0900)
Change-Id: I5cf81dfbced86d06549c5aece3074203f30c81a1
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
tizen/src/util/extra_pkgs_install.c

index 7db369a..85dcec3 100644 (file)
@@ -213,8 +213,12 @@ void epi_init(void)
                     if (strcmp(EXT_RPM, ext)) {
                         continue;
                     }
-                    if (strcasestr(pkg_list, sub_dir_entry->d_name)) {
-                        continue;
+                    char* checkDup = strcasestr(pkg_list, sub_dir_entry->d_name);
+                    if (checkDup != NULL) {
+                        checkDup--;
+                        if (*checkDup == ' ') {
+                            continue;
+                        }
                     }
 
                     pkg_count++;