summaryrefslogtreecommitdiff
path: root/gentree.py
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2013-03-31 00:00:32 +0100
committerJohannes Berg <johannes@sipsolutions.net>2013-03-31 00:00:32 +0100
commitf6d17dce8e0d9204785683a6fff01008b680d43e (patch)
treea5b3114a10f333ea9aa15c804489722acbf0ea34 /gentree.py
parentd9ffe4caf39be863f999736abc0ec2980b358fba (diff)
make debug snapshots per applied patchset
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'gentree.py')
-rwxr-xr-xgentree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gentree.py b/gentree.py
index 3fc050c4..8efecd88 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)