From f45c1352f20c11006e7dd739c39fdc97fc5811d2 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Mon, 27 Jun 2016 11:45:17 +0300 Subject: [PATCH] More verbose patching reporting by default If --patch is used, showing names of applied patches seems like a good idea. --- hererocks.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/hererocks.py b/hererocks.py index 50d9160..90999a8 100755 --- a/hererocks.py +++ b/hererocks.py @@ -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)) - + 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):