diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-02 13:58:13 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 12:43:29 +0100 |
| commit | e7287e5157eb8a1486b8896ae4c9a050b86562c7 (patch) | |
| tree | 2a159f38b30b26cc94567dd419329a8eda566ed2 /scripts/lib/wic/engine.py | |
| parent | e3a062ab1e90be6f6bed1e2facb9bfcbc0274f00 (diff) | |
| download | poky-e7287e5157eb8a1486b8896ae4c9a050b86562c7.tar.gz | |
wic: fix pylint warning unused-variable
Removed or reworked code with unused variables.
(From OE-Core rev: 3644b9f5ca25dfc61d4f5eda0f073c8a879b492b)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/engine.py')
| -rw-r--r-- | scripts/lib/wic/engine.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index a034841a7a..30c4fa38dc 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py | |||
| @@ -43,9 +43,7 @@ def verify_build_env(): | |||
| 43 | 43 | ||
| 44 | Returns True if it is, false otherwise | 44 | Returns True if it is, false otherwise |
| 45 | """ | 45 | """ |
| 46 | try: | 46 | if not os.environ.get("BUILDDIR"): |
| 47 | builddir = os.environ["BUILDDIR"] | ||
| 48 | except KeyError: | ||
| 49 | print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)" | 47 | print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)" |
| 50 | sys.exit(1) | 48 | sys.exit(1) |
| 51 | 49 | ||
