Skip to content

Commit

Permalink
Obsolete pre 7.0 noarch package in rpm (#39472)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rjernst committed Feb 28, 2019
1 parent 8ced21d commit 1124624
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions distribution/packages/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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('-', '_')
Expand Down

0 comments on commit 1124624

Please sign in to comment.