Fix "dnf list upgrades" parsing

The header for the output of this command appears to have changed at
some point, which breaks our output parsing. This adds the new header to
the `_strip_headers()` helper so that we ignore it while parsing.
This commit is contained in:
Erik Johnson 2018-05-21 09:49:08 -05:00
parent 27fbb42210
commit cd484bef69
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -85,6 +85,7 @@ def _strip_headers(output, *args):
if not args:
args_lc = ('installed packages',
'available packages',
'available upgrades',
'updated packages',
'upgraded packages')
else: