element.py: Separate initial resolving of elements from _update_state

A new _resolve_cache_keys_and_state() method has been added to
Element. This ensures that sources are consistent, calculates
the cache keys and then determines the artifact state.
2 files changed