forked from NetBSDfr/pkgin
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of unavailable and preferred packages.
During some of the earlier rototilling, the package not available message was no longer printed for unavailable packages due to changes in the download code. This is now fixed, and also differentiates correctly between packages that are not available, and those that do not match the requirements stated in preferred.conf. Use separate functions for install and show-* commands, the former using the preferred.conf logic, the latter using regular matches to match local queries and other tools. This also avoids "not preferred" messages leaking into show-* output, they belong in trace/debug output. Abstract away some of the logic that will help in future cleanups, and improve the output messages. Upgrades still do not support preferred matches, this will be fixed in due course.
- Loading branch information
Jonathan Perkin
committed
Sep 20, 2018
1 parent
f8341b2
commit 9b6b39f
Showing
5 changed files
with
91 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters