Skip to content

Commit

Permalink
debian: remove sourcemapper
Browse files Browse the repository at this point in the history
This shouldn't be needed anymore, now that source packages are being
extracted from dpkg correctly and the debian Updater is tagging the
created Vulnerabilities as "source".

Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Mar 28, 2024
1 parent db3b3e0 commit 395b041
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 300 deletions.
11 changes: 0 additions & 11 deletions debian/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,6 @@ func (u *updater) Parse(ctx context.Context, r io.ReadCloser) ([]*claircore.Vuln
},
}
vs = append(vs, &v)

for _, bin := range u.sm.Get(d.VersionCodeName, src) {
// Shallow copy.
vuln := v
vuln.Package = &claircore.Package{
Name: bin,
Kind: claircore.BINARY,
}

vs = append(vs, &vuln)
}
}
}
}
Expand Down
168 changes: 0 additions & 168 deletions debian/sourcemapper.go

This file was deleted.

72 changes: 0 additions & 72 deletions debian/sourcemapper_test.go

This file was deleted.

Binary file removed debian/testdata/Bullseye-Sources.gz
Binary file not shown.
Loading

0 comments on commit 395b041

Please sign in to comment.