Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,15 @@ func isRelevantForPackager(packager string, content *Content) bool {
}

if packager != "rpm" &&
(content.Type == TypeRPMDoc || content.Type == TypeRPMLicence ||
content.Type == TypeRPMLicense || content.Type == TypeRPMReadme ||
content.Type == TypeRPMGhost) {
content.Type == TypeRPMGhost {
// Ghost files only apply to RPM; exclude from other packagers.
return false
}

// RPM-specific document types (doc, licence, license, readme) are treated
// as normal files by non-RPM packagers per documentation, so they are NOT
// excluded here.

if packager != "deb" && content.Type == TypeDebChangelog {
return false
}
Expand Down
Loading