Closed smortex closed 4 years ago
@vchepkov, can you please confirm that this fix your problem?
thanks for the PR. can you add an acceptance test that verifies your changes are correct? The regex is quite hard to read :)
I could finally managed to get some time for this. I added a few unit test and rebased the fix on top of master. Thanks!
Pull Request (PR) description
The
yum list updates
command outputs diagnostic messages and then the actual available updates both on stdout. Depending on the installed yum plugins, a variable number of diagnostic lines are emitted, and the output is always formatted for humans, making it non-trivial to distinguish useless and relevant lines.Instead of ignoring the first line, match each line with a pattern matching the following fields:
<package-name>.<architecture>
;These fields are separated by a variable amount of space. When a line match this pattern, consider the package as relevant for update.
This Pull Request (PR) fixes the following issues
Fixes #180