From 5532526595092fcf69e86bc875d9571abfa2cc08 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Thu, 3 Nov 2016 19:44:34 +0100 Subject: [PATCH] [modules/dnf] Fix a bug wrt. counter extraction Bugfixes and enhancements were wrongly extracted. --- bumblebee/modules/dnf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bumblebee/modules/dnf.py b/bumblebee/modules/dnf.py index be62596..0271665 100644 --- a/bumblebee/modules/dnf.py +++ b/bumblebee/modules/dnf.py @@ -28,6 +28,7 @@ def get_dnf_info(obj): other = 0 for line in res.split("\n"): if "expiration" in line: continue + if not line.startswith(" "): continue elif "ecurity" in line: for s in str.split(line): if s.isdigit(): security += int(s) @@ -68,7 +69,7 @@ class Module(bumblebee.module.Module): def data(self): result = [] - for t in [ "security", "bugfix", "enhancement", "other" ]: + for t in [ "security", "bugfixes", "enhancements", "other" ]: result.append(str(self.get(t))) return "/".join(result)