Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repoquery: fix rich deps matching by using provide expansion from libdnf #1432

Closed
wants to merge 6 commits into from

Commits on Jan 14, 2020

  1. repoquery: move the alldeps/exactdeps check to configure()

    Moves the check for alldeps/exactdeps switches to the configure() method
    along with the other checks.
    
    Raises dnf.cli.CliError instead of dnf.exceptions.Error.
    Lukáš Hrázký committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    bfd0488 View commit details
    Browse the repository at this point in the history
  2. repoquery: fix calling by_all_deps() for --tree

    Fixes a bug introduced in bd00c04, where the by_all_deps() arguments
    were changed to an array, but in tree_seed() it still passes a single
    string.
    
    Untested, I have actually no idea what the code does there, it looks
    kind of suspect.
    Lukáš Hrázký committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    d9492fe View commit details
    Browse the repository at this point in the history
  3. repoquery: simplify handling of whatrequires and whatdepends

    Separates whatrequires and whatdepends handling into two separate code
    branches, the original was overly complex, confusing and presented
    multiple unnecessary corner cases.
    
    The by_all_deps() arguments now also have a much better defined role.
    Lukáš Hrázký committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    f2f3145 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2020

  1. repoquery: rework "alldeps" dependency search (RhBug:1534123,1698034)

    Uses the new feature of filtering by solvables to properly resolve rich
    dependencies for packages. The new code now, along with serching for the
    arguments as reldeps, also searches for them as NEVRAs and then looks up
    the dependencies for the packages it found.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1534123
    https://bugzilla.redhat.com/show_bug.cgi?id=1698034
    Lukáš Hrázký committed Jan 16, 2020
    Configuration menu
    Copy the full SHA
    a1bdbfa View commit details
    Browse the repository at this point in the history
  2. repoquery: resolve NEVRAs to packages for most of --what* arguments (…

    …RhBug:1534123,1698034)
    
    To properly list the conflicts, suggests, recommends, enhances and
    supplements dependencies of packages defined through provides or even
    rich dependencies, it is required to resolve them to packages and query
    for them, because that's where the dependencies are defined.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1534123
    https://bugzilla.redhat.com/show_bug.cgi?id=1698034
    Lukáš Hrázký committed Jan 16, 2020
    Configuration menu
    Copy the full SHA
    60cd14a View commit details
    Browse the repository at this point in the history
  3. [doc] Update documentation for the query filter API

    Add the new types of arguments supported for dependency filtering.
    Lukáš Hrázký committed Jan 16, 2020
    Configuration menu
    Copy the full SHA
    757f9ad View commit details
    Browse the repository at this point in the history