eolian: fail on scan file conflict

If two files of the same name are found in the include paths,
the scan should fail.
This commit is contained in:
Daniel Kolesa 2019-05-06 16:48:21 +02:00
parent 159e955168
commit aa1db12c00
1 changed files with 1 additions and 1 deletions

View File

@ -794,7 +794,7 @@ eolian_state_directory_add(Eolian_State *state, const char *dir)
{
if (!dir || !state) return EINA_FALSE;
Scan_State sst = { state, EINA_TRUE };
return eina_file_dir_list(dir, EINA_TRUE, _scan_cb, &sst);
return eina_file_dir_list(dir, EINA_TRUE, _scan_cb, &sst) && sst.succ;
}
EAPI Eina_Bool