From 89c962511833b6148fd1e4e38d35a405465e94fa Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Fri, 9 May 2025 13:31:05 +0300 Subject: [PATCH] proton: Try to fix prefix if possible. CW-Bug-Id: #25362 --- proton | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/proton b/proton index 0cd63749..e894a153 100755 --- a/proton +++ b/proton @@ -920,19 +920,7 @@ class CompatData: self.upgrade_pfx(old_ver) - # not fully-created prefix, copy it for future investigation - if file_exists(self.prefix_dir, follow_symlinks=True) and not file_exists(self.creation_sync_guard, follow_symlinks=True): - shutil.move(self.prefix_dir, self.path(f"corrupted_pfx-{time.time()}.bak")) - - # remove files created for the corrupted prefix, we usually append to them - if file_exists(self.version_file, follow_symlinks=False): - os.remove(self.version_file) - if file_exists(self.config_info_file, follow_symlinks=False): - os.remove(self.config_info_file) - if file_exists(self.tracked_files_file, follow_symlinks=False): - os.remove(self.tracked_files_file) - - if not file_exists(self.prefix_dir, follow_symlinks=True): + if not file_exists(self.creation_sync_guard, follow_symlinks=False): makedirs(self.prefix_dir + "/drive_c") set_dir_casefold_bit(self.prefix_dir + "/drive_c")