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 c57940a528
commit 3d716a9db2

2
proton
View file

@ -174,7 +174,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: