File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff 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
149158func (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}
You can’t perform that action at this time.
0 commit comments