Commit b1602599 authored by Julien Muchembled's avatar Julien Muchembled

fixup! Do not depend on slapos.libnetworkcache, which is optional

parent d552f036
...@@ -98,6 +98,9 @@ def download_network_cached(path, name, revision, networkcache_options): ...@@ -98,6 +98,9 @@ def download_network_cached(path, name, revision, networkcache_options):
""" """
Download a tar of the repository from cache, and untar it. Download a tar of the repository from cache, and untar it.
""" """
if not (LIBNETWORKCACHE_ENABLED and networkcache_options.get(
'download-dir-url')):
return False
def strategy(entry_list): def strategy(entry_list):
""" """
Get the latest entry. Get the latest entry.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment