提交 36ea7be6 编写于 作者: C Cleber Rosa

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

And the docstring of the asset library itself.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 a09565d2
......@@ -50,8 +50,8 @@ class Asset(object):
:param asset_hash: asset hash
:param algorithm: hash algorithm
:param locations: list of locations fetch asset from
:params cache_dirs: list of cache directories
:params expire: time in seconds for the asset to expire
:param cache_dirs: list of cache directories
:param expire: time in seconds for the asset to expire
"""
self.name = name
self.asset_hash = asset_hash
......
......@@ -72,7 +72,8 @@ 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.data_dirs).fetch()
cache_dirs=[self.work_dir],
expire=None).fetch()
def uncompress(self):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册