Skip to content

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.

2 participants