The syncing can be disabled with CacheOnly=metadata and we already
don't use repository metadata that's already populated so let's not
imply anything specific when using base trees so that base trees
without repository metadata can still be used to build extension
images.
def copy_repository_metadata(context: Context) -> None:
- if have_cache(context.config) or context.config.base_trees:
+ if have_cache(context.config):
return
subdir = context.config.distribution.package_manager(context.config).subdir(context.config)
def sync_repository_metadata(args: Args, config: Config, *, resources: Path) -> None:
- if have_cache(config) or config.cacheonly != Cacheonly.none or config.base_trees:
+ if have_cache(config) or config.cacheonly != Cacheonly.none:
return
with (