-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework pkgStanzasEnabled calculation.
Before: pkgStanzasEnabled is initialized to an empty list and filled in on the first pruning pass. After: pkgStanzasEnabled is initialized to the set of explicitly requested stanzas, and then we add more enabled stanzas as we do "pruning" passes (a bit of a misnomer). Why is it good? Now we always satisfy the invariant that the set of enabled stanzas is a superset of the set of requested stanzas; previously, the invariant was broken up until the point you ran pruning (which, in the case of new-configure, meant that the invariant was always broken!) and we were tripping over this when attempting to render the set of configure flags for plan display. Signed-off-by: Edward Z. Yang <[email protected]>
- Loading branch information
Showing
1 changed file
with
34 additions
and
18 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