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:
parent
8ced21db88
commit
1124624e87
|
@ -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('-', '_')
|
||||
|
|
Loading…
Reference in New Issue