Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DynamicBuildrequires: Detect when no new packages were installed
Prior to this change, the DynamicBuildrequires loop never ended. This commit fixes it in 2 ways: 1. It now actually stops when max_loops (10) happened. 2. It also stops when the package manager hasn't installed anything. Both is consistent with the comment present in the previously broken code. The detection of 2. is based on packages returned by `rpm -qa` before and after the installation. If they haven't changed, the package manager hasn't installed anything.
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
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