def fetch_channel(
v: Verification, channel: ChannelSearchPath) -> Tuple[str, str]:
- v.status('Fetching channel')
+ v.status('Fetching channel from %s' % channel.channel_url)
request = urllib.request.urlopen(channel.channel_url, timeout=10)
channel_html = request.read().decode()
forwarded_url = request.geturl()
assert empty == ''
v.check("Verifying nix-prefetch-url's digest",
to_Digest16(v, Digest32(prefetch_digest)) == digest)
- v.status("Verifying file digest")
+ v.status("Verifying digest of %s" % path)
file_digest = digest_file(path)
v.result(file_digest == digest)
return path # type: ignore # (for old mypy)