From f6d17dce8e0d9204785683a6fff01008b680d43e Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Sun, 31 Mar 2013 00:00:32 +0100 Subject: [PATCH] make debug snapshots per applied patchset Signed-off-by: Johannes Berg --- gentree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gentree.py b/gentree.py index 3fc050c48e15..8efecd88dfde 100755 --- a/gentree.py +++ b/gentree.py @@ -214,6 +214,8 @@ def main(): sys.exit(2) if not printed: print "Not applying changes from %s, not needed" % (os.path.basename(pdir),) + else: + git_debug_snapshot(args, "apply backport patches from %s" % (os.path.basename(pdir),)) # remove orig/rej files that patch sometimes creates for root, dirs, files in os.walk(args.outdir): @@ -221,8 +223,6 @@ def main(): if f[-5:] == '.orig' or f[-4:] == '.rej': os.unlink(os.path.join(root, f)) - git_debug_snapshot(args, "apply backport patches") - # rewrite Makefile and source symbols r = 'CONFIG_((' + '|'.join([s + '(_MODULE)?' for s in symbols]) + ')([^A-Za-z0-9_]|$))' r = re.compile(r, re.MULTILINE) -- 2.30.2