-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkglistgen: tool: decouple summary dict creation
The summary dictionary used to create summary-{scope}.txt was previously returned by solve_project() via write_all_groups(). After c46dd3e, solve_project() doesn't return anything anymore, as write_all_groups() is being invoked just after solve_project(). Thus, the "summary" dictionary would always be None. Since the summary dict creation is generic enough, move it to its own function, and call it afterwards after project solving. This commit also drops the return statement both on write_all_groups() and write_productcompose() (where it would always return an empty dictionary), and moves the write_productcompose() call after solve_project() as well to match the change with write_all_groups(). Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
- Loading branch information
1 parent
ed30d28
commit d297625
Showing
1 changed file
with
16 additions
and
8 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