Skip to content

Commit

Permalink
Fix parsing of Scoop version. Closes #1089
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Sep 19, 2023
1 parent ca05cd7 commit 1ada0c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This version is not released yet and is under active development.
```

- \[mpm\] Drop support of Python 3.7.
- \[scoop\] Fix parsing of Scoop version.
- \[mpm\] Run bar plugin unittests in their independent, non-parrallel step.
- \[mpm\] Replace unmaintained `bump2version` by `bump-my-version`.

Expand Down
4 changes: 2 additions & 2 deletions meta_package_manager/managers/scoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class Scoop(PackageManager):

requirement = "0.2.4"

version_regex = r".*Scoop version:\s+v(?P<version>\S+)"
"""Search version right after the ``Scoop version:\n`` string.
version_regex = r"^v(?P<version>\S+)\s.+"
"""Search version at the start of a line.
.. code-block:: shell-session
Expand Down

0 comments on commit 1ada0c7

Please sign in to comment.