Skip to content

Commit fe31f57

Browse files
committed
fix el9.aarch64 upstream patroni 3.0.4 error
1 parent bf309ee commit fe31f57

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cli/ext/catalog.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ func GetDependency(name string) []string {
145145
return Catalog.Dependency[name]
146146
}
147147

148+
// ArchAliasOverride contains package name overrides for specific OS+arch combinations
149+
// Key format: "el9.arm64", value is a map of alias -> package names
150+
var ArchAliasOverride = map[string]map[string]string{
151+
"el9.arm64": {
152+
"patroni": "patroni-4.1.0 patroni-etcd-4.1.0",
153+
"pgsql-common": "patroni-4.1.0 patroni-etcd-4.1.0 pgbouncer pgbackrest pg_exporter pgbackrest_exporter vip-manager",
154+
},
155+
}
156+
148157
// LoadAliasMap loads the alias map for the given distribution code
149158
func (ec *ExtensionCatalog) LoadAliasMap(distroCode string) {
150159
if distroCode == "" {
@@ -282,4 +291,12 @@ func (ec *ExtensionCatalog) LoadAliasMap(distroCode string) {
282291
ec.AliasMap = pkgMap
283292
}
284293

294+
// Apply architecture-specific overrides
295+
archCode := config.OSCode + "." + config.OSArch
296+
if overrides, ok := ArchAliasOverride[archCode]; ok {
297+
logrus.Debugf("applying alias overrides for %s", archCode)
298+
for k, v := range overrides {
299+
ec.AliasMap[k] = v
300+
}
301+
}
285302
}

0 commit comments

Comments
 (0)