Skip to content

pkgdev bugs throws wen faced with ~ dependency specifier (pkgdev bugs: error: unable to find match for restrictions: ~dev-dotnet/dotnet-runtime-nugets-8.0.23) #221

@xgqt

Description

@xgqt

When trying to file stable bugs for dotnet project I get this error:

$ pkgdev bugs --edit-graph --filter-stablereqs --auto-cc-arches="dotnet@gentoo.org" --find-by-maintainer="dotnet@gentoo.org" --debug

Searching for packages maintained by: dotnet@gentoo.org
Checking =app-shells/posh-z-1.1.15 on 'amd64'
Checking =dev-vcs/sourcegit-2026.04 on 'amd64'
Checking =dev-util/marksman-2026.02.08 on 'amd64'
Checking =dev-dotnet/dotnet-sdk-bin-10.0.102 on 'amd64 arm arm64'
Traceback (most recent call last):
  File "/usr/lib/python3.14/site-packages/pkgdev/scripts/pkgdev_bugs.py", line 446, in _find_dependencies
    match = self.find_best_match(set().union(*problems.values()), pkgset)
  File "/usr/lib/python3.14/site-packages/pkgdev/scripts/pkgdev_bugs.py", line 393, in find_best_match
    return matches[0]
           ~~~~~~~^^^
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.14/site-packages/pkgdev/scripts/pkgdev_bugs.py", line 452, in _find_dependencies
    match = self.find_best_match(deps, pkgset)
  File "/usr/lib/python3.14/site-packages/pkgdev/scripts/pkgdev_bugs.py", line 393, in find_best_match
    return matches[0]
           ~~~~~~~^^^
IndexError: list index out of range
pkgdev bugs: error: unable to find match for restrictions: ~dev-dotnet/dotnet-runtime-nugets-9.0.12 , ~dev-dotnet/dotnet-runtime-nugets-10.0.2 , ~dev-dotnet/dotnet-runtime-nugets-8.0.23

w/o debug:

$ pkgdev bugs --edit-graph --filter-stablereqs --auto-cc-arches="dotnet@gentoo.org" --find-by-maintainer="dotnet@gentoo.org"

Searching for packages maintained by: dotnet@gentoo.org
Checking =dev-util/marksman-2026.02.08 on 'amd64'
Checking =dev-dotnet/dotnet-sdk-bin-10.0.102 on 'amd64 arm arm64'
pkgdev bugs: error: unable to find match for restrictions: ~dev-dotnet/dotnet-runtime-nugets-8.0.23 , ~dev-dotnet/dotnet-runtime-nugets-10.0.2 , ~dev-dotnet/dotnet-runtime-nugets-9.0.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    tools/bugsrelevant to "pkgdev bugs"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions