Skip to content

Commit

Permalink
fix: main main exclusive too
Browse files Browse the repository at this point in the history
  • Loading branch information
ook37 committed Jan 10, 2025
1 parent f69bdce commit ea9cbad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ def handle_add(args):
print(f"Error: Invalid distros given: {', '.join(invalid_distros)}")
print(f"Valid distros are: {', '.join(valid_distros)}")
return
if 'main' in distros and len(distros) > 1:
print(f"Error: 'main' is mutually exclusive.")
return
else:
distros = None

Expand Down

0 comments on commit ea9cbad

Please sign in to comment.