Temporary fix for license check path for debian packaging. (#97)
This currently unblocks the gradle check and subsequently will be removed by the meta issue https://github.com/opendistro-for-elasticsearch/search/issues/50 Signed-off-by: Peter Nied <petern@amazon.com>
This commit is contained in:
parent
97ed035c1c
commit
a048a9d48a
|
@ -615,7 +615,7 @@ subprojects {
|
||||||
],
|
],
|
||||||
|
|
||||||
'license.name': [
|
'license.name': [
|
||||||
'deb': oss ? 'ASL-2.0' : 'Elastic-License'
|
'deb': 'ASL-2.0'
|
||||||
],
|
],
|
||||||
|
|
||||||
'license.text': [
|
'license.text': [
|
||||||
|
|
|
@ -494,7 +494,14 @@ subprojects {
|
||||||
Path copyrightPath
|
Path copyrightPath
|
||||||
String expectedLicense
|
String expectedLicense
|
||||||
String licenseFilename
|
String licenseFilename
|
||||||
copyrightPath = packageExtractionDir.toPath().resolve("usr/share/doc/elasticsearch-oss/copyright")
|
if (project.name.contains('oss-')) {
|
||||||
|
copyrightPath = packageExtractionDir.toPath().resolve("usr/share/doc/elasticsearch-oss/copyright")
|
||||||
|
}
|
||||||
|
// TODO - remove this block and only check for the OSS distribution
|
||||||
|
// https://github.com/opendistro-for-elasticsearch/search/issues/50
|
||||||
|
else {
|
||||||
|
copyrightPath = packageExtractionDir.toPath().resolve("usr/share/doc/elasticsearch/copyright")
|
||||||
|
}
|
||||||
expectedLicense = "ASL-2.0"
|
expectedLicense = "ASL-2.0"
|
||||||
licenseFilename = "APACHE-LICENSE-2.0.txt"
|
licenseFilename = "APACHE-LICENSE-2.0.txt"
|
||||||
final List<String> header = Arrays.asList("Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/",
|
final List<String> header = Arrays.asList("Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/",
|
||||||
|
|
Loading…
Reference in New Issue