Obsolete pre 7.0 noarch package in rpm (#39472)

This commit makes the rpm metadata indicate the pre 7.0 noarch packages
are obsoleted by this package. This fixes an issue where upgrading with
yum would cause an error thinking there was nothing to upgrade.

closes #39414
This commit is contained in:
Ryan Ernst 2019-02-28 12:35:23 -08:00 committed by GitHub
parent 8ced21db88
commit 1124624e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@
import org.elasticsearch.gradle.LoggedExec
import org.elasticsearch.gradle.MavenFilteringHack
import org.redline_rpm.header.Flags
import java.nio.file.Files
import java.nio.file.Path
@ -330,6 +331,8 @@ Closure commonRpmConfig(boolean oss) {
packageGroup 'Application/Internet'
requires '/bin/bash'
obsoletes packageName, '7.0.0', Flags.LESS
prefix '/usr'
packager 'Elasticsearch'
version = project.version.replace('-', '_')