Skip to content

Commit

Permalink
pw_env_setup: Fix variable name typo
Browse files Browse the repository at this point in the history
Change-Id: I6f51514fef6b4a7cf0447f678e2cdcb9c49d03cb
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108228
Pigweed-Auto-Submit: Alexei Frolov <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Reviewed-by: Rob Mohr <[email protected]>
  • Loading branch information
frolv authored and CQ Bot Account committed Aug 25, 2022
1 parent c9b6641 commit a355216
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pw_env_setup/py/pw_env_setup/env_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def _parse_config_file(self, config_file):
self._config_file_name, next(iter(config))))

def _check_submodule_presence(self):
unitialized = set()
uninitialized = set()

# Don't check submodule presence if using the Android Repo Tool.
if os.path.isdir(os.path.join(self._project_root, '.repo')):
Expand All @@ -335,11 +335,11 @@ def _check_submodule_presence(self):
# Anything but an initial '-' means the submodule is initialized.
if not line.startswith('-'):
continue
unitialized.add(line.split()[1])
uninitialized.add(line.split()[1])

missing = unitialized - set(self._optional_submodules)
missing = uninitialized - set(self._optional_submodules)
if self._required_submodules:
missing = set(self._required_submodules) & unitialized
missing = set(self._required_submodules) & uninitialized

if missing:
print(
Expand Down

0 comments on commit a355216

Please sign in to comment.