]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
patman: Don't run patman when it is imported as a module
authorSimon Glass <sjg@chromium.org>
Thu, 30 Jul 2015 19:47:41 +0000 (13:47 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:50:55 +0000 (13:50 +0200)
commita61500f11cc052180a361337b37ae69ce5043b76
tree1b88c48165b0af3214034cdcff27841bb0846266
parent9809db22cc39a2d05080e28360b09d3ba864806e
patman: Don't run patman when it is imported as a module

Commit 488d19c (patman: add distutils based installer) has the side effect
of making patman run twice with each invocation. Fix this by checking for
'main program' invocation in patman.py. This is good practice in any case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
tools/patman/patman.py