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

Prefer exact match on package name over provides match #643

Merged
merged 1 commit into from
Sep 25, 2017

Conversation

smira
Copy link
Contributor

@smira smira commented Sep 25, 2017

When searching for packages which might satisfy given dependency,
aptly was first returning packages which Provides mentioned
name. By default aptly is picking up only first match (unless
follow all variants options is enabled), so Provides: takes
precedence over exact package name match.

Invert this logic by searching first for package name match.

Fixes #618

Checklist

  • unit-test added (if change is algorithm)
  • functional test added/updated (if change is functional)
  • man page updated (if applicable)
  • bash completion updated (if applicable)
  • documentation updated
  • author name in AUTHORS

When searching for packages which might satisfy given dependency,
aptly was first returning packages which `Provides` mentioned
name. By default aptly is picking up only first match (unless
follow all variants options is enabled), so `Provides:` takes
precedence over exact package name match.

Invert this logic by searching first for package name match.
@smira smira merged commit 1c44b4f into master Sep 25, 2017
@smira smira deleted the 618-prefer-exact-match branch September 25, 2017 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant