Skip to content

Commit 1124624

Browse files
authored
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
1 parent 8ced21d commit 1124624

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

distribution/packages/build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import org.elasticsearch.gradle.LoggedExec
2020
import org.elasticsearch.gradle.MavenFilteringHack
21+
import org.redline_rpm.header.Flags
2122

2223
import java.nio.file.Files
2324
import java.nio.file.Path
@@ -330,6 +331,8 @@ Closure commonRpmConfig(boolean oss) {
330331
packageGroup 'Application/Internet'
331332
requires '/bin/bash'
332333

334+
obsoletes packageName, '7.0.0', Flags.LESS
335+
333336
prefix '/usr'
334337
packager 'Elasticsearch'
335338
version = project.version.replace('-', '_')

0 commit comments

Comments
 (0)