Change-Id: I5cf81dfbced86d06549c5aece3074203f30c81a1
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
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);