up2k-srv: try all dupes for matching path

This commit is contained in:
ed 2021-09-24 19:21:19 +02:00
parent 16c8e38ecd
commit 076d32dee5

View file

@ -1112,6 +1112,9 @@ class Up2k(object):
if dp_dir.startswith("//") or dp_fn.startswith("//"):
dp_dir, dp_fn = s3dec(dp_dir, dp_fn)
if job and (dp_dir != cj["prel"] or dp_fn != cj["name"]):
continue
dp_abs = "/".join([cj["ptop"], dp_dir, dp_fn])
# relying on path.exists to return false on broken symlinks
if bos.path.exists(dp_abs):
@ -1127,7 +1130,6 @@ class Up2k(object):
"hash": [],
"need": [],
}
break
if job and wark in reg:
del reg[wark]