diff options
author | jinh0.choi <jinh0.choi@samsung.com> | 2017-08-24 15:49:18 +0900 |
---|---|---|
committer | jinh0.choi <jinh0.choi@samsung.com> | 2017-08-24 15:49:18 +0900 |
commit | 0ef7170ce3f7b807407b46726ef61cb5703735e5 (patch) | |
tree | c6be8016f2a944f80bb7c05fd68b36a3ddd7480c | |
parent | 6a8fecff608a17c79c4b2ebf00a84cb673a8c6c3 (diff) | |
download | qemu-0ef7170ce3f7b807407b46726ef61cb5703735e5.tar.gz qemu-0ef7170ce3f7b807407b46726ef61cb5703735e5.tar.bz2 qemu-0ef7170ce3f7b807407b46726ef61cb5703735e5.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.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tizen/src/util/extra_pkgs_install.c b/tizen/src/util/extra_pkgs_install.c index 7db369ae2f..85dcec3663 100644 --- a/tizen/src/util/extra_pkgs_install.c +++ b/tizen/src/util/extra_pkgs_install.c @@ -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++; |