mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-13 20:10:05 +08:00
Only import the COPR builder when MBS is configured to use it
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import pkg_resources
|
||||
|
||||
from module_build_service import conf
|
||||
from base import GenericBuilder
|
||||
|
||||
__all__ = [
|
||||
@@ -7,4 +8,7 @@ __all__ = [
|
||||
]
|
||||
|
||||
for entrypoint in pkg_resources.iter_entry_points('mbs.builder_backends'):
|
||||
GenericBuilder.register_backend_class(entrypoint.load())
|
||||
# Only import the copr builder if it is configured since we don't want to include the copr
|
||||
# module as a dependency for all installations
|
||||
if entrypoint.name != "copr" or conf.system == 'copr':
|
||||
GenericBuilder.register_backend_class(entrypoint.load())
|
||||
|
||||
Reference in New Issue
Block a user