summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjinh0.choi <jinh0.choi@samsung.com>2017-08-24 15:49:18 +0900
committerjinh0.choi <jinh0.choi@samsung.com>2017-08-25 16:50:37 +0900
commitdda4efd7432ba9e13c58d16e134776115dd5d9ed (patch)
tree59630a2e84e2cc172a2cffc8bf478ec5e23db020
parent514e255a09f723ac29262a7627095675df1560cf (diff)
downloadqemu-dda4efd7432ba9e13c58d16e134776115dd5d9ed.tar.gz
qemu-dda4efd7432ba9e13c58d16e134776115dd5d9ed.tar.bz2
qemu-dda4efd7432ba9e13c58d16e134776115dd5d9ed.zip
extra: add condition for package duplication
Change-Id: I5cf81dfbced86d06549c5aece3074203f30c81a1 Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
-rw-r--r--tizen/src/util/extra_pkgs_install.c13
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);