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