Skip to content

Commit

Permalink
fix(ubuntu): Fix deferred packages not showing as affected (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: Idanski <idan@intezer.com>
  • Loading branch information
idanski and Idanski authored Mar 1, 2021
1 parent b0e8dc7 commit c801405
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion models/ubuntu.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func parseNotFixedYet(comment string) (*Package, bool) {
return nil, false
}

var reNotDecided = regexp.MustCompile(`^(.+) package in .+ is affected, but a decision has been made to defer addressing it .+$`)
var reNotDecided = regexp.MustCompile(`^(.+) package in .+ is affected, but a decision has been made to defer addressing it.*$`)

func parseNotDecided(comment string) (*Package, bool) {
// Ubuntu 14
Expand Down
7 changes: 7 additions & 0 deletions models/ubuntu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ func TestParseNotDecided(t *testing.T) {
NotFixedYet: true,
},
},
{
comment: `systemd package in bionic is affected, but a decision has been made to defer addressing it.`,
expected: Package{
Name: "systemd",
NotFixedYet: true,
},
},
}

for i, tt := range tests {
Expand Down

0 comments on commit c801405

Please sign in to comment.