Fix that need_build work like image (#912)

This commit is contained in:
Pascal Vizeli 2019-01-31 22:08:10 +01:00 committed by GitHub
parent 35aae69f23
commit da3270af67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -534,7 +534,9 @@ class Addon(CoreSysAttributes):
@property
def need_build(self):
"""Return True if this add-on need a local build."""
return ATTR_IMAGE not in self._mesh
if self.is_detached:
return ATTR_IMAGE not in self._data.system.get(self._id)
return ATTR_IMAGE not in self._data.cache.get(self._id)
@property
def map_volumes(self):