Skip to content

Commit

Permalink
Proton-tkg: Upstream updates tend to break older prefixes often, so l…
Browse files Browse the repository at this point in the history
…et's clear on all major updates both ways, instead of only downwards

Should hopefully help with cases such as Frogging-Family#422 even in a limited way.
It can be a problem for some regressions preventing some dependency installations, though.
  • Loading branch information
Tk-Glitch committed Jun 27, 2021
1 parent ff84448 commit 3263cb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proton-tkg/proton_template/conf/proton
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,11 @@ class CompatData:
new_proton_ver, new_prefix_ver = CURRENT_PREFIX_VERSION.split('-')
new_proton_maj, new_proton_min = new_proton_ver.split('.')

if int(new_proton_maj) < int(old_proton_maj) or \
# Upstream updates tend to break older prefixes often, so let's clear on all major updates both ways
if int(new_proton_maj) != int(old_proton_maj) or \
(int(new_proton_maj) == int(old_proton_maj) and \
int(new_proton_min) < int(old_proton_min)):
log("Removing newer prefix")
log("Removing previous prefix")
if old_proton_ver == "3.7" and not os.path.exists(self.tracked_files_file):
#proton 3.7 did not generate tracked_files, so copy it into place first
try_copy(g_proton.path("proton_3.7_tracked_files"), self.tracked_files_file)
Expand Down

0 comments on commit 3263cb7

Please sign in to comment.