Commit 54cc784
make-file-list.sh: future-proof the
In c9f04bb (make-file-list: stop being confused by `>=<ver>` in the
`pactree` output, 2025-02-10), this script was adjusted to account for
`pactree` sometimes specifying version ranges of some dependencies.
However, this change was incomplete! It only handles the version ranges
that are _currently_ found in Git for Windows, but other version ranges
are equally valid.
What I came up with to parse a dependency in msys2/pacdb
(https://github.com/msys2/pacdb) is:
```source-python
_DEPENDRE = re.compile(r'([^<>=]+)(?:(<=|>=|<|>|=)(.*))?')
```
That might be more complicated than we want to use here though. (That
gets you 3 match groups: the package name, the relational operator, and
the version).
We might just as well future-proof it by a simpler solution that
nevertheless catches more package version checks.
Signed-off-by: Jeremy Drake <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>pactree output parsing1 parent 9518f2c commit 54cc784
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments