"""
fetched = 0
- digests = mydigests.get(myfile, {})
- size = digests.get("size")
+ orig_digests = mydigests.get(myfile, {})
+ size = orig_digests.get("size")
+ pruned_digests = orig_digests
if parallel_fetchonly:
- digests.clear()
+ pruned_digests = pruned_digests.copy()
if size is not None:
- digests["size"] = size
+ pruned_digests["size"] = size
myfile_path = os.path.join(mysettings["DISTDIR"], myfile)
has_space = True
eout = portage.output.EOutput()
eout.quiet = mysettings.get("PORTAGE_QUIET") == "1"
- match, mystat = _check_distfile(myfile_path, digests, eout)
+ match, mystat = _check_distfile(
+ myfile_path, pruned_digests, eout)
if match:
if can_fetch and not fetch_to_ro:
try:
readonly_file = None
for x in ro_distdirs:
filename = os.path.join(x, myfile)
- match, mystat = _check_distfile(filename, digests, eout)
+ match, mystat = _check_distfile(
+ filename, pruned_digests, eout)
if match:
readonly_file = filename
break