mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-21 02:08:29 +00:00
fix(regression): respect modules enabled by ModuleMd during module builds
This commit is contained in:
parent
65ba92ea9c
commit
6a6fc2924c
@ -687,8 +687,15 @@ func (c *Controller) BuildArchActivity(ctx context.Context, projectId string, pa
|
|||||||
c.log.Infof("no extra options to process for package")
|
c.log.Infof("no extra options to process for package")
|
||||||
}
|
}
|
||||||
|
|
||||||
extraOptions.DisabledModules = disableModules
|
if extraOptions.DisabledModules == nil {
|
||||||
extraOptions.Modules = enableModules
|
extraOptions.DisabledModules = []string{}
|
||||||
|
}
|
||||||
|
extraOptions.DisabledModules = append(extraOptions.DisabledModules, disableModules...)
|
||||||
|
|
||||||
|
if extraOptions.Modules == nil {
|
||||||
|
extraOptions.Modules = []string{}
|
||||||
|
}
|
||||||
|
extraOptions.Modules = append(extraOptions.Modules, enableModules...)
|
||||||
|
|
||||||
hostArch := os.Getenv("REAL_BUILD_ARCH")
|
hostArch := os.Getenv("REAL_BUILD_ARCH")
|
||||||
err = c.writeMockConfig(&project, packageVersion, extraOptions, arch, hostArch, pkgGroup)
|
err = c.writeMockConfig(&project, packageVersion, extraOptions, arch, hostArch, pkgGroup)
|
||||||
|
@ -425,8 +425,15 @@ func (c *Controller) BuildSRPMActivity(ctx context.Context, upstreamPrefix strin
|
|||||||
c.log.Infof("no extra options to process for package")
|
c.log.Infof("no extra options to process for package")
|
||||||
}
|
}
|
||||||
|
|
||||||
extraOptions.DisabledModules = disableModules
|
if extraOptions.DisabledModules == nil {
|
||||||
extraOptions.Modules = enableModules
|
extraOptions.DisabledModules = []string{}
|
||||||
|
}
|
||||||
|
extraOptions.DisabledModules = append(extraOptions.DisabledModules, disableModules...)
|
||||||
|
|
||||||
|
if extraOptions.Modules == nil {
|
||||||
|
extraOptions.Modules = []string{}
|
||||||
|
}
|
||||||
|
extraOptions.Modules = append(extraOptions.Modules, enableModules...)
|
||||||
|
|
||||||
hostArch := os.Getenv("REAL_BUILD_ARCH")
|
hostArch := os.Getenv("REAL_BUILD_ARCH")
|
||||||
extraOptions.EnableNetworking = true
|
extraOptions.EnableNetworking = true
|
||||||
|
Loading…
Reference in New Issue
Block a user