Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Mezei <[email protected]>
  • Loading branch information
gabor-mezei-arm committed Nov 12, 2024
1 parent 655c487 commit 6763a55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/scripts/depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,11 @@ def turn_off_dependencies(config_settings, exclude=None):
An option O is turned off if config_settings[O] is False.
Handle the dependencies recursively.
If 'exclude' is a symbol, do not process it's dependencies. It is usefull when
two symbol has dependencies is common but need to be switched separately.
If 'exclude' is a symbol, ensure its dependencies are not turned off while dependencies
of other settings are turned off.
"""

# Recursively determine the excludable dependencies
# Determine recursively the settings that should not be turned off for the sake of 'exclude'.
excludes = set()
if exclude:
revdep = set(REVERSE_DEPENDENCIES.get(exclude, []))
Expand All @@ -415,7 +415,7 @@ def turn_off_dependencies(config_settings, exclude=None):
continue

# Save the processed settings to handle cross referencies.
# Mark the excluded dependencies as already processed to skip it.
# Start with set of settings that we do not want to turn off.
history = excludes.copy()
revdep = set(REVERSE_DEPENDENCIES.get(key, [])) - excludes
while revdep:
Expand Down

0 comments on commit 6763a55

Please sign in to comment.