From d907478a663305ff74985b3c2334622f8e54f4ec Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Sat, 26 Oct 2019 00:24:57 +0300 Subject: [PATCH] Fix bug with counting absolved alerts --- cli/cli.go | 4 ++-- common/perfecto.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 209c0f1..fa3032a 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -33,7 +33,7 @@ import ( // App info const ( APP = "Perfecto" - VER = "2.5.0" + VER = "2.5.1" DESC = "Tool for checking perfectly written RPM specs" ) @@ -250,7 +250,7 @@ func countAlerts(alerts []check.Alert) int { var counter int for _, alert := range alerts { - if !alert.Line.Skip { + if !alert.Absolve { counter++ } } diff --git a/common/perfecto.spec b/common/perfecto.spec index e0c32a7..3c8f320 100644 --- a/common/perfecto.spec +++ b/common/perfecto.spec @@ -10,7 +10,7 @@ Summary: Tool for checking perfectly written RPM specs Name: perfecto -Version: 2.5.0 +Version: 2.5.1 Release: 0%{?dist} Group: Development/Tools License: EKOL @@ -87,6 +87,9 @@ fi ################################################################################ %changelog +* Sat Oct 26 2019 Anton Novojilov - 2.5.1-0 +- Fixed bug with counting absolved alerts + * Fri Oct 25 2019 Anton Novojilov - 2.5.0-0 - Added option for disabling some checks for entire spec - Added check for HTTPS support on a source domain