Revert "avocado/utils/kernel.py: fix the use of the asset library"

The main change is actually incorrect, the kernel.py library uses
`data_dirs` argument to determine the `cache_dirs`, which is by default
`self.work_dir`.

This reverts commit 36ea7be6.
上级 ac0088ca
......@@ -50,8 +50,8 @@ class Asset(object):
:param asset_hash: asset hash
:param algorithm: hash algorithm
:param locations: list of locations fetch asset from
:param cache_dirs: list of cache directories
:param expire: time in seconds for the asset to expire
:params cache_dirs: list of cache directories
:params expire: time in seconds for the asset to expire
"""
self.name = name
self.asset_hash = asset_hash
......
......@@ -72,8 +72,7 @@ class KernelBuild(object):
full_url = self.URL + self.SOURCE.format(version=self.version)
self.asset_path = asset.Asset(full_url, asset_hash=None,
algorithm=None, locations=None,
cache_dirs=[self.work_dir],
expire=None).fetch()
cache_dirs=self.data_dirs).fetch()
def uncompress(self):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册