commit | 2b68b3682ec2e0b37c03b55a9961905e59cd65ca | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Jul 30 13:47:41 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Fri Jul 31 07:31:12 2015 -0600 |
tree | e82a82d7f4ba70e70c7456cc1d8ce4e7e31d4189 | |
parent | 77b92d607d2c77e8a5610492d3ccbaef02c85c44 [diff] |
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>