Commit 6c3107f
committed
bugs: handle case where multiple versions of dependency are present
For `dev-dotnet/dotnet-sdk-bin` package, PDEPEND has the value of::
~dev-dotnet/dotnet-runtime-nugets-10.0.7
~dev-dotnet/dotnet-runtime-nugets-6.0.36
~dev-dotnet/dotnet-runtime-nugets-7.0.20
~dev-dotnet/dotnet-runtime-nugets-8.0.26
~dev-dotnet/dotnet-runtime-nugets-9.0.15
This value is grouped into a single dependency, which forces the matcher
to find a single version matching all of them (impossible). Now I added
an extra fallback to handle this case, which should be more robust and
handle cases where multiple versions of the same dependency are present.
Resolves: #221
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>1 parent 212779b commit 6c3107f
1 file changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
484 | 485 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
491 | 503 | | |
492 | 504 | | |
493 | 505 | | |
| |||
0 commit comments