| |
@@ -7,6 +7,7 @@
|
| |
_running_in_bg,
|
| |
activate_session,
|
| |
watch_tasks,
|
| |
+ warn,
|
| |
)
|
| |
|
| |
|
| |
@@ -34,6 +35,10 @@
|
| |
parser.add_option("--result-bundle-name-format", help="Override default bundle name format")
|
| |
parser.add_option("--make-prep", action="store_true", default=False,
|
| |
help="Run 'make prep' in checkout before starting the build")
|
| |
+ parser.add_option("--buildroot-repo", action="store_true",
|
| |
+ dest="use_buildroot_repo", default=False,
|
| |
+ help="Add buildroot repo to installation sources. This is off by default, "
|
| |
+ "but if there is no --repo used, it will be turned on automatically.")
|
| |
parser.add_option("--can-fail", action="store", dest="optional_arches",
|
| |
metavar="ARCH1,ARCH2,...", default="",
|
| |
help="List of archs which are not blocking for build "
|
| |
@@ -81,6 +86,14 @@
|
| |
if options.repo:
|
| |
kwargs['repos'] = options.repo
|
| |
|
| |
+ if session.hub_version < (1, 35, 0):
|
| |
+ warn("hub version is < 1.35, buildroot repo is always used in addition to specified repos")
|
| |
+ elif options.use_buildroot_repo:
|
| |
+ kwargs['use_buildroot_repo'] = True
|
| |
+ elif not options.repo:
|
| |
+ warn("no repos given, using buildroot repo")
|
| |
+ kwargs['use_buildroot_repo'] = True
|
| |
+
|
| |
task_id = session.kiwiBuild(**kwargs)
|
| |
|
| |
if not goptions.quiet:
|
| |
Issue #4062, extended PR #4061