Lines Matching full:asset
21 def __init__(self, asset, msg, transient=False): argument
22 self.url = asset.url
33 class Asset: class
48 return "Asset: url=%s hash=%s cache=%s" % (
84 # Another thread already seems to download the asset, so wait until
117 self.log.debug("Using cached asset %s for %s",
123 "Asset cache is invalid and downloads disabled")
187 os.setxattr(str(tmp_cache_file), "user.qemu-asset-url",
189 os.setxattr(str(tmp_cache_file), "user.qemu-asset-hash",
214 for name, asset in vars(test.__class__).items():
215 if name.startswith("ASSET_") and type(asset) == Asset:
216 log.info("Attempting to cache '%s'" % asset)
218 asset.fetch()
222 log.error("%s: skipping asset precache" % e)
229 Asset.precache_suite(test)
231 Asset.precache_test(test)
238 Asset.precache_suite(tests)