From d4fb46c9ba0d03bb26b94224d86855cc7e445c19 Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Tue, 6 Sep 2016 10:57:11 +0900 Subject: [PATCH] Fix parse Error for yum check-update #165 --- scan/redhat.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scan/redhat.go b/scan/redhat.go index fb5b0a98..2faa764c 100644 --- a/scan/redhat.go +++ b/scan/redhat.go @@ -381,7 +381,9 @@ func (o *redhat) parseYumCheckUpdateLines(stdout string) (results models.Package continue } if needToParse { - if strings.HasPrefix(line, "Obsoleting") { + if strings.HasPrefix(line, "Obsoleting") || + strings.HasPrefix(line, "Security:") { + // see https://github.com/future-architect/vuls/issues/165 continue } candidate, err := o.parseYumCheckUpdateLine(line)