proton: Don't try track .debug files if there's not tracking file.

This commit is contained in:
Arkadiusz Hiler 2024-07-26 10:07:54 +03:00
parent 5b99c12aed
commit 40b964bd30

2
proton
View file

@ -173,7 +173,7 @@ def try_copy(src, dst, prefix=None, add_write_perm=True, copy_metadata=False, op
if file_exists(dst + '.debug', follow_symlinks=False):
os.remove(dst + '.debug')
elif link_debug:
elif link_debug and track_file:
track_file.write(os.path.relpath(dst + '.debug', prefix) + '\n')
if link_debug: