Skip to content

Commit

Permalink
Fix parse Error for yum check-update #165
Browse files Browse the repository at this point in the history
  • Loading branch information
kotakanbe committed Sep 6, 2016
1 parent c41301a commit d4fb46c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scan/redhat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d4fb46c

Please sign in to comment.