diff options
Diffstat (limited to 'bitbake/bin/bitbake-layers')
-rwxr-xr-x | bitbake/bin/bitbake-layers | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 88fb8ea939..119b15c172 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
@@ -31,9 +31,10 @@ def main(args): | |||
31 | console.setFormatter(format) | 31 | console.setFormatter(format) |
32 | logger.addHandler(console) | 32 | logger.addHandler(console) |
33 | 33 | ||
34 | initialenv = os.environ.copy() | ||
34 | bb.utils.clean_environment() | 35 | bb.utils.clean_environment() |
35 | 36 | ||
36 | cmds = Commands() | 37 | cmds = Commands(initialenv) |
37 | if args: | 38 | if args: |
38 | cmds.onecmd(' '.join(args)) | 39 | cmds.onecmd(' '.join(args)) |
39 | else: | 40 | else: |
@@ -42,9 +43,8 @@ def main(args): | |||
42 | 43 | ||
43 | 44 | ||
44 | class Commands(cmd.Cmd): | 45 | class Commands(cmd.Cmd): |
45 | def __init__(self): | 46 | def __init__(self, initialenv): |
46 | cmd.Cmd.__init__(self) | 47 | cmd.Cmd.__init__(self) |
47 | initialenv = os.environ.copy() | ||
48 | self.returncode = 0 | 48 | self.returncode = 0 |
49 | self.config = Config(parse_only=True) | 49 | self.config = Config(parse_only=True) |
50 | self.cooker = bb.cooker.BBCooker(self.config, | 50 | self.cooker = bb.cooker.BBCooker(self.config, |