Fix download of 6.x rpm and deb packages (#48228)

This commit is contained in:
Alpar Torok 2019-10-21 10:03:44 +03:00 committed by GitHub
parent b1224fca8c
commit c903ac2376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -227,7 +227,13 @@ public class DistributionDownloadPlugin implements Plugin<Project> {
classifier = "";
}
} else if (distribution.getType() == Type.DEB) {
classifier = ":amd64";
if (distroVersion.onOrAfter("7.0.0")) {
classifier = ":amd64";
} else {
classifier = "";
}
} else if (distribution.getType() == Type.RPM && distroVersion.before("7.0.0")) {
classifier = "";
}
String flavor = "";
if (distribution.getFlavor() == Flavor.OSS && distroVersion.onOrAfter("6.3.0")) {