summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjinh0.choi <jinh0.choi@samsung.com>2017-09-28 19:10:07 +0900
committerjinh0.choi <jinh0.choi@samsung.com>2017-09-28 19:10:07 +0900
commit97b98e1d61d0ca437f04ed9abea156220a18c319 (patch)
treeb88195436609a71573c8e87a38ac1ed2cec0c8c8
parent2229930f95279e8b768fab72f8397ce8833fd838 (diff)
downloadqemu-97b98e1d61d0ca437f04ed9abea156220a18c319.tar.gz
qemu-97b98e1d61d0ca437f04ed9abea156220a18c319.tar.bz2
qemu-97b98e1d61d0ca437f04ed9abea156220a18c319.zip
install: add duplicate case of beginning index
Change-Id: Icb8f6d557f9b57b2204e9102ba7434b9fc50c1eb Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
-rw-r--r--tizen/src/util/extra_pkgs_install.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tizen/src/util/extra_pkgs_install.c b/tizen/src/util/extra_pkgs_install.c
index 85dcec3663..037101a306 100644
--- a/tizen/src/util/extra_pkgs_install.c
+++ b/tizen/src/util/extra_pkgs_install.c
@@ -215,8 +215,13 @@ void epi_init(void)
}
char* checkDup = strcasestr(pkg_list, sub_dir_entry->d_name);
if (checkDup != NULL) {
+ if (checkDup == pkg_list) {
+ LOG_INFO("duplicated package : %s\n", sub_dir_entry->d_name);
+ continue;
+ }
checkDup--;
if (*checkDup == ' ') {
+ LOG_INFO("duplicated package: %s\n", sub_dir_entry->d_name);
continue;
}
}