Skip to content

Commit

Permalink
Invert conditional for an earlier return.
Browse files Browse the repository at this point in the history
Co-authored-by: Christophe Bedard <[email protected]>
  • Loading branch information
nuclearsandwich and christophebedard authored Aug 9, 2024
1 parent 25ac0e0 commit 8c57dba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rosdep2/platforms/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def externally_managed_installable():
flagrantly named "break system packages" config option or environment
variable.
"""
if sys.version_info >= (3, 11):
if sys.version_info < (3, 11):
return True
if 'PIP_BREAK_SYSTEM_PACKAGES' in os.environ and os.environ[
'PIP_BREAK_SYSTEM_PACKAGES'
].lower() in ('yes', '1', 'true'):
Expand Down

0 comments on commit 8c57dba

Please sign in to comment.