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

Add expanding solvable provides for dependency matching #762

Merged
merged 4 commits into from
Jan 27, 2020
Merged

Add expanding solvable provides for dependency matching #762

merged 4 commits into from
Jan 27, 2020

Commits on Jan 14, 2020

  1. Query: use the common dep switch branch for CONFLICTS when applying

    Join the HY_PKG_CONFLICTS switch branch with the rest of the
    dependencies and remove the matchtype assert. The assert is done in the
    filterRcoReldep() function and the rest is the same.
    Lukáš Hrázký committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    8ed343c View commit details
    Browse the repository at this point in the history
  2. Query: add a dependency by solvable filter (RhBug:1534123,1698034)

    This allows to filter all dependencies (requires, conflicts, recommends,
    etc.) by a list of solvables that match the dependency.
    
    Can be used in the dnf repoquery command instead of a low-level piece of
    code which was expanding packages to their provides and then matching the
    dependencies as reldeps.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1534123
    https://bugzilla.redhat.com/show_bug.cgi?id=1698034
    Lukáš Hrázký committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    cf87a74 View commit details
    Browse the repository at this point in the history
  3. Hawkey tests: fix filtering on requires by passing a query

    Fixes tests after allowing to pass a query (or an iterable of packages)
    as an argument to dependency filters (requires, suggests, etc.) in
    "Query: add a dependency by solvable filter".
    
    Drops the exception check and adds a simple test for the new
    functionality.
    Lukáš Hrázký committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    83f556c View commit details
    Browse the repository at this point in the history
  4. Query: Add support for a sequence of packages to dependency queries

    In addition to supporting a query as an argument to the dependency
    filters (which then gets resolved to a list of packages), add support
    for passing a sequence of packages directly.
    Lukáš Hrázký committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    c594c47 View commit details
    Browse the repository at this point in the history