aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-22 16:27:35 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-22 16:27:35 +0100
commit3ae67b24b3dfbc8af16ddbf1ff31054f4dc3b56e (patch)
treee6905597e7d369f464688f72d3c2af48a12cf085
parenteolian: clean rollback support (diff)
downloadefl-3ae67b24b3dfbc8af16ddbf1ff31054f4dc3b56e.tar.gz
eolian: validate staging unit when parsing all
-rw-r--r--src/lib/eolian/eolian_database.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c
index 4e337f6ed4..afa524f5af 100644
--- a/src/lib/eolian/eolian_database.c
+++ b/src/lib/eolian/eolian_database.c
@@ -929,7 +929,7 @@ eolian_state_all_eot_files_parse(Eolian_State *state)
_state_clean(state);
eina_hash_foreach(state->filenames_eot, _tfile_parse, &pd);
- if (pd.ret && !database_validate(&state->unit))
+ if (pd.ret && !database_validate(&state->staging))
return EINA_FALSE;
_merge_unit(&state->unit, &state->staging);
@@ -961,7 +961,7 @@ eolian_state_all_eo_files_parse(Eolian_State *state)
_state_clean(state);
eina_hash_foreach(state->filenames_eo, _file_parse, &pd);
- if (pd.ret && !database_validate(&state->unit))
+ if (pd.ret && !database_validate(&state->staging))
return EINA_FALSE;
_merge_unit(&state->unit, &state->staging);