Skip to content

Commit

Permalink
feat: Allow namespace-level package curations
Browse files Browse the repository at this point in the history
This is required to support e.g. the use-case described at [1]. The
`toCurationPath()` function already supports empty package names and
uses `_.yml` as a file name in that case.

[1]: oss-review-toolkit/ort#5105 (comment)

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Jan 30, 2024
1 parent 16138aa commit b45aa63
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ open class VerifyPackageCurationsTask : DefaultTask() {
}

curations.forEach { curation ->
if (curation.id.name.isBlank()) {
issues += "Only curations for specific packages are allowed, but the curation for package " +
"'${curation.id.toCoordinates()}' in file '$relativePath' does not have a package name."
}

val version = curation.id.version
if (version.isNotBlank() && version.hasVersionRangeIndicators()) {
val range = RangesListFactory.create(version)
Expand Down

0 comments on commit b45aa63

Please sign in to comment.