-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a second goal for second resolving in case of unavailable packages
An unavailable package is not a critical error, therefore, it's reported only as a warning and it may be skipped. One option would be to check all the specs before adding them to goal, but that seems more error-prone. The other option, which was chosen in this commit, is to resolve the selection (up to) two times, the second time with skip_unavailable set to True. It is not possible to resolve the same goal twice with different settings, therefore, another goal is created and the specs are added to both. The tests are updated to match the behavior (no warnings with sip_unavailable, warnings and not errors without skip_unavailable).
- Loading branch information
Showing
2 changed files
with
33 additions
and
9 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