diff options
| author | Chris Laplante <chris.laplante@agilent.com> | 2020-11-08 17:10:50 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-11 10:09:18 +0000 |
| commit | 6898b8e3835185d6e4337bb8010a92d67b539fad (patch) | |
| tree | 819e09a2b0fac00ab47a49b1c5f77f4902947fe6 /bitbake | |
| parent | d8babbe08a6ff248fd1ee984e48a7de03ae53756 (diff) | |
| download | poky-6898b8e3835185d6e4337bb8010a92d67b539fad.tar.gz | |
bitbake: cookerdata: tweak to avoid mutable default argument
(Bitbake rev: 36ee858415866a122784b05f06e2af0c92dfcafd)
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/bb/cookerdata.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index 91cc4347f6..c39b568130 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
| @@ -23,8 +23,8 @@ logger = logging.getLogger("BitBake") | |||
| 23 | parselog = logging.getLogger("BitBake.Parsing") | 23 | parselog = logging.getLogger("BitBake.Parsing") |
| 24 | 24 | ||
| 25 | class ConfigParameters(object): | 25 | class ConfigParameters(object): |
| 26 | def __init__(self, argv=sys.argv): | 26 | def __init__(self, argv=None): |
| 27 | self.options, targets = self.parseCommandLine(argv) | 27 | self.options, targets = self.parseCommandLine(argv or sys.argv) |
| 28 | self.environment = self.parseEnvironment() | 28 | self.environment = self.parseEnvironment() |
| 29 | 29 | ||
| 30 | self.options.pkgs_to_build = targets or [] | 30 | self.options.pkgs_to_build = targets or [] |
| @@ -209,7 +209,7 @@ def findConfigFile(configfile, data): | |||
| 209 | return None | 209 | return None |
| 210 | 210 | ||
| 211 | # | 211 | # |
| 212 | # We search for a conf/bblayers.conf under an entry in BBPATH or in cwd working | 212 | # We search for a conf/bblayers.conf under an entry in BBPATH or in cwd working |
| 213 | # up to /. If that fails, we search for a conf/bitbake.conf in BBPATH. | 213 | # up to /. If that fails, we search for a conf/bitbake.conf in BBPATH. |
| 214 | # | 214 | # |
| 215 | 215 | ||
