From dda4efd7432ba9e13c58d16e134776115dd5d9ed Mon Sep 17 00:00:00 2001 From: "jinh0.choi" Date: Thu, 24 Aug 2017 15:49:18 +0900 Subject: extra: add condition for package duplication Change-Id: I5cf81dfbced86d06549c5aece3074203f30c81a1 Signed-off-by: jinh0.choi --- tizen/src/util/extra_pkgs_install.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tizen/src/util/extra_pkgs_install.c b/tizen/src/util/extra_pkgs_install.c index 47ba02ea5d..0d476d2d41 100644 --- a/tizen/src/util/extra_pkgs_install.c +++ b/tizen/src/util/extra_pkgs_install.c @@ -203,10 +203,17 @@ void epi_init(void) continue; ext = &sub_dir_entry->d_name[strlen(sub_dir_entry->d_name) - 4]; - if (strcmp(EXT_RPM, ext)) - continue; - if (strcasestr(pkg_list, sub_dir_entry->d_name)) + if (strcmp(EXT_RPM, ext)) { continue; + } + + char* checkDup = strcasestr(pkg_list, sub_dir_entry->d_name); + if (checkDup != NULL) { + checkDup--; + if (*checkDup == ' ') { + continue; + } + } pkg_count++; add_addon_pkgs_name(pkgs, sub_dir_entry->d_name); -- cgit v1.2.3