From de7ac7803035c173be1abb8dd30fac5b8db829bb Mon Sep 17 00:00:00 2001 From: Esme Povirk Date: Thu, 23 Dec 2021 12:45:16 -0600 Subject: [PATCH] Set .update-timestamp for new prefixes. CW-Bug-Id: #19818 --- proton | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proton b/proton index 5db8a958..ded01f7b 100755 --- a/proton +++ b/proton @@ -301,6 +301,7 @@ class Proton: self.lib64_dir = self.path("dist/lib64/") self.fonts_dir = self.path("dist/share/fonts/") self.wine_fonts_dir = self.path("dist/share/wine/fonts/") + self.wine_inf = self.path("dist/share/wine/wine.inf") self.version_file = self.path("version") self.default_pfx_dir = self.path("dist/share/default_pfx/") self.user_settings_file = self.path("user_settings.py") @@ -549,6 +550,11 @@ class CompatData: if not os.path.exists(dst_file): self.pfx_copy(src_file, dst_file) tracked_files.write(rel_dir + file_ + "\n") + # Set .update-timestamp so Wine doesn't try to update the prefix. + # This is needed in case the mtime of wine.inf has changed in distribution. + with open(os.path.join(self.prefix_dir, '.update-timestamp'), 'w') as update_timestamp: + mtime = int(os.stat(g_proton.wine_inf).st_mtime) + update_timestamp.write(str(mtime)) def update_builtin_libs(self, dll_copy_patterns): dll_copy_patterns = dll_copy_patterns.split(',')