提交 a0e14b2f 编写于 作者: C Cleber Rosa

Asset Fetcher: use hash_file name for the opened hash file

And not "asset_file", because that references the file with the
content itself, and not the file containing its hash.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 b6820c64
......@@ -192,8 +192,8 @@ class Asset(object):
if not os.path.isfile(self.hashfile):
self._compute_hash()
with open(self.hashfile, 'r') as asset_file:
for line in asset_file:
with open(self.hashfile, 'r') as hash_file:
for line in hash_file:
# md5 is 32 chars big and sha512 is 128 chars big.
# others supported algorithms are between those.
pattern = '%s [a-f0-9]{32,128}' % self.algorithm
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册