support _path for symlinkoption and root OD

This commit is contained in:
2018-11-17 21:31:35 +01:00
parent 7ae91b0f4e
commit c86cad227e
4 changed files with 24 additions and 4 deletions

View File

@ -150,9 +150,8 @@ class CacheOptionDescription(BaseOption):
raise ValueError(_('malformed requirements option "{0}" '
'must not be a multi for "{1}"').format(
require_opt.impl_getname(), option.impl_getname()))
if not hasattr(option, '_path'):
option._path = subpath
option._set_readonly()
option._path = subpath
option._set_readonly()
if init:
if __debug__ and len(cache_option) != len(set(cache_option)):
for idx in range(1, len(cache_option) + 1):
@ -169,6 +168,7 @@ class CacheOptionDescription(BaseOption):
opt.impl_getname()))
self._cache_consistencies[opt] = tuple(cons)
self._cache_force_store_values = force_store_values
self._path = subpath
self._set_readonly()
def impl_build_force_store_values(self,