| |
@@ -487,6 +487,14 @@
|
| |
opts.add_rpm_to_whitelist("custom2")
|
| |
mmd.set_buildopts(opts)
|
| |
self.module.modulemd = mmd_to_str(mmd)
|
| |
+ else:
|
| |
+ # Set some irrelevant buildopts options to test that KojiModuleBuilder
|
| |
+ # is not confused by this.
|
| |
+ mmd = self.module.mmd()
|
| |
+ opts = Modulemd.Buildopts()
|
| |
+ opts.set_rpm_macros("%my_macro 1")
|
| |
+ mmd.set_buildopts(opts)
|
| |
+ self.module.modulemd = mmd_to_str(mmd)
|
| |
|
| |
if repo_include_all is False:
|
| |
mmd = self.module.mmd()
|
| |
This fixes module builds which sets the
buildopts
for something elsethan the RPM whitelist.
Before this commit, when
buildopts
was set, the RPM whitelist wasalways taken from the buildopts even if it was not defined there.
This resulted in empty
rpm_whitelist
and therefore no pkglist setin Koji tag.
In this commit, MBS uses whitelist from
buildopts
only if it isreally set by the module maintainer.