patchport: don't warn when skipping instructional patches

This commit is contained in:
ave 2019-02-06 01:55:28 +03:00
parent cbc72c4155
commit 46ac15a055
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -63,7 +63,9 @@ for patch in os.listdir(os.path.join(cutthecord_folder, "patches")):
# Check if patch exists for from_version, if it doesn't, warn user
if not os.path.isfile(patch_path):
print(f"SKIPPED: No {from_versionname} version found for {patch}.")
# Don't warn on instructional patches
if patch not in ["customfont", "customring"]:
print(f"SKIPPED: No {from_versionname} version found for {patch}.")
continue
# Get a modified version of the patch
@ -118,4 +120,4 @@ else:
f.write(ctcr_text)
print("Port complete. All patches completed successfully. "
"README was updated.")
"README.md was updated.")