From b45aa6322793c818297a48eb27e7c1ba4de8756f Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 30 Jan 2024 18:05:21 +0100 Subject: [PATCH] feat: Allow namespace-level package curations 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]: https://github.com/oss-review-toolkit/ort/issues/5105#issuecomment-1108228824 Signed-off-by: Sebastian Schuberth --- .../buildSrc/src/main/kotlin/VerifyPackageCurationsTask.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/curations/buildSrc/src/main/kotlin/VerifyPackageCurationsTask.kt b/tools/curations/buildSrc/src/main/kotlin/VerifyPackageCurationsTask.kt index 5a7b3a7f..7fa53d47 100644 --- a/tools/curations/buildSrc/src/main/kotlin/VerifyPackageCurationsTask.kt +++ b/tools/curations/buildSrc/src/main/kotlin/VerifyPackageCurationsTask.kt @@ -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)