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")
179 os.setxattr(str(tmp_cache_file), "user.qemu-asset-url",
181 os.setxattr(str(tmp_cache_file), "user.qemu-asset-hash",
206 for name, asset in vars(test.__class__).items():
207 if name.startswith("ASSET_") and type(asset) == Asset:
208 log.info("Attempting to cache '%s'" % asset)
210 asset.fetch()
214 log.error("%s: skipping asset precache" % e)
221 Asset.precache_suite(test)
223 Asset.precache_test(test)
230 Asset.precache_suite(tests)