Do not add the new version to the patch README if it's the same as the old one

This commit is contained in:
eatsfoobars 2020-09-08 11:01:23 +01:00
parent dedd8883e6
commit 012602f8d3
Signed by untrusted user: eatsfoobars
GPG key ID: D08609FADBD8C395

View file

@ -196,6 +196,7 @@ for patch in os.listdir(os.path.join(cutthecord_folder, "patches")):
if patch in ["necessary"]:
apply_patch(patch_contents)
if from_versionname != to_versionname:
# Add supported version to readme of that patch, hacky
# https://stackoverflow.com/a/35130508/3286892
with open(readme_path, 'r') as f: