More verbose patching reporting by default

If --patch is used, showing names of applied patches seems like a good
idea.
This commit is contained in:
Peter Melnichenko 2016-06-27 11:45:17 +03:00
parent 83ac3076b7
commit f45c1352f2

View File

@ -938,11 +938,8 @@ class RioLua(Lua):
def apply_patch(self, patch_name):
patch = self.all_patches[patch_name]
err = Patch(patch).apply()
if opts.verbose:
status = "OK" if err is None else "fail - {}".format(err)
print('Patch for "{}": {}'.format(patch_name, status))
return err is None
@staticmethod
@ -992,7 +989,7 @@ class RioLua(Lua):
return
applied = sum(map(self.apply_patch, patches))
print("Using {} patch{} ({} available)".format(
print("Applied {} patch{} ({} available for this version)".format(
applied, "" if applied == 1 else "es", len(patches)))
def make(self):