Incorrect variable name in the diskfile.py
You should use the suffix variable instead of the hash_ variable when updates the hashes dictionary in the get_hashes(). Fixes Bug1374777 Change-Id: If9a7ab5b6d271385e4fdc79ff9c216047a2f4d7e
This commit is contained in:
parent
0d502de2f5
commit
041cf67c36
|
@ -358,7 +358,7 @@ def get_hashes(partition_dir, recalculate=None, do_listdir=False,
|
|||
if len(suff) == 3:
|
||||
hashes.setdefault(suff, None)
|
||||
modified = True
|
||||
hashes.update((hash_, None) for hash_ in recalculate)
|
||||
hashes.update((suffix, None) for suffix in recalculate)
|
||||
for suffix, hash_ in hashes.items():
|
||||
if not hash_:
|
||||
suffix_dir = join(partition_dir, suffix)
|
||||
|
|
Loading…
Reference in New Issue