summaryrefslogtreecommitdiff
path: root/tools/patman/patman.py
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-09-09 20:02:43 -0400
committerTom Rini <trini@ti.com>2014-09-09 20:02:43 -0400
commit5935408a4092a1a132ff1ce866374ab1ed555bcd (patch)
tree232412fb1d28582fc261a23d04f866c795e72d19 /tools/patman/patman.py
parent8c9c74e4c69b43cd50a1f04b34cfc141ed21654c (diff)
parentd0ea61d9caf85e4285d5c2da508db9fac70e4aba (diff)
Merge branch 'buildman' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'tools/patman/patman.py')
-rwxr-xr-xtools/patman/patman.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/patman/patman.py b/tools/patman/patman.py
index 5ab74fa251..2ab6b351d6 100755
--- a/tools/patman/patman.py
+++ b/tools/patman/patman.py
@@ -146,13 +146,18 @@ else:
# Email the patches out (giving the user time to check / cancel)
cmd = ''
- if ok or options.ignore_errors:
+ its_a_go = ok or options.ignore_errors
+ if its_a_go:
cmd = gitutil.EmailPatches(series, cover_fname, args,
options.dry_run, not options.ignore_bad_tags, cc_file,
in_reply_to=options.in_reply_to)
+ else:
+ print col.Color(col.RED, "Not sending emails due to errors/warnings")
# For a dry run, just show our actions as a sanity check
if options.dry_run:
series.ShowActions(args, cmd, options.process_tags)
+ if not its_a_go:
+ print col.Color(col.RED, "Email would not be sent")
os.remove(cc_file)