Skip to content

Commit

Permalink
we need to allow winetricks options to be passed through. let winetri…
Browse files Browse the repository at this point in the history
…cks decide if its not valid.
  • Loading branch information
GloriousEggroll committed Oct 23, 2024
1 parent f89dd31 commit 13aed4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions umu/umu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2330,11 +2330,6 @@ def test_parse_args_winetricks(self):
):
umu_run.parse_args()

with (
patch("sys.argv", ["", "winetricks", "--help"]),
self.assertRaises(SystemExit),
):
umu_run.parse_args()

def test_parse_args_noopts(self):
"""Test parse_args with no options.
Expand Down
2 changes: 1 addition & 1 deletion umu/umu_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def is_installed_verb(verb: list[str], pfx: Path) -> bool:


def is_winetricks_verb(
verbs: list[str], pattern: str = r"^[a-zA-Z_0-9]+(=[a-zA-Z0-9]*)?$"
verbs: list[str], pattern: str = r"^[a-zA-Z_0-9-]+(=[a-zA-Z0-9]*)?$"
) -> bool:
"""Check if a string is a winetricks verb."""
regex: Pattern
Expand Down

0 comments on commit 13aed4b

Please sign in to comment.