ignore existing symlinks

This commit is contained in:
Charlotte 🦝 Delenk 2024-12-01 16:02:11 +01:00
parent 90cb5d2e0f
commit 54add2bd4e
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -55,7 +55,10 @@ for line in iter(result.stdout.readline, ""):
# if we have a gcroot, add it to it
if gcroots is not None:
drvBasename = os.path.basename(data["drvPath"])
os.symlink(data["drvPath"], os.path.join(gcroots, drvBasename))
try:
os.symlink(data["drvPath"], os.path.join(gcroots, drvBasename))
except:
pass
# Now we are done with this job, we can tell hydra about it
print(line)
except Exception as e: