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:
parent
83ac3076b7
commit
f45c1352f2
@ -938,11 +938,8 @@ class RioLua(Lua):
|
|||||||
def apply_patch(self, patch_name):
|
def apply_patch(self, patch_name):
|
||||||
patch = self.all_patches[patch_name]
|
patch = self.all_patches[patch_name]
|
||||||
err = Patch(patch).apply()
|
err = Patch(patch).apply()
|
||||||
|
status = "OK" if err is None else "fail - {}".format(err)
|
||||||
if opts.verbose:
|
print('Patch for "{}": {}'.format(patch_name, status))
|
||||||
status = "OK" if err is None else "fail - {}".format(err)
|
|
||||||
print('Patch for "{}": {}'.format(patch_name, status))
|
|
||||||
|
|
||||||
return err is None
|
return err is None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@ -992,7 +989,7 @@ class RioLua(Lua):
|
|||||||
return
|
return
|
||||||
|
|
||||||
applied = sum(map(self.apply_patch, patches))
|
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)))
|
applied, "" if applied == 1 else "es", len(patches)))
|
||||||
|
|
||||||
def make(self):
|
def make(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user