diff options
-rw-r--r-- | tizen/src/util/extra_pkgs_install.c | 13 |
1 files 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); |