Fix a bug in patchport

This commit is contained in:
ave 2019-03-21 14:02:40 +03:00
parent 29ca523bfe
commit fec4f2ae24
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -119,7 +119,8 @@ for patch in os.listdir(os.path.join(cutthecord_folder, "patches")):
with open(out_path, "w") as f:
f.write(patch_contents)
print(f"PORTED: {patch} was successfully ported.")
if not out_path.endswith("-failed"):
print(f"PORTED: {patch} was successfully ported.")
if failures:
print(f"Port complete. Following patches failed: {', '.join(failures)}")