@@ -99,6 +99,8 @@ def __init__(self, args) -> None:
99
99
self .reorder = args .reorder
100
100
self .save_list = args .save_list
101
101
self .force_use_apt = args .force_use_apt
102
+ self .bootstrap_ab_only = args .bootstrap_ab_only
103
+
102
104
# static vars
103
105
self .autobuild_conf_dir = AUTOBUILD_CONF_DIR
104
106
self .conf_dir = CONF_DIR
@@ -302,7 +304,7 @@ def build_sequential(self, build_timings, packages: List[ACBSPackageInfo]):
302
304
source_name = task .name
303
305
if task .base_slug :
304
306
source_name = os .path .basename (task .base_slug )
305
- if not has_stamp (task .build_location ):
307
+ if not has_stamp (task .build_location ) and not self . bootstrap_ab_only :
306
308
fetch_source (task .source_uri , self .dump_dir , source_name )
307
309
if self .dl_only :
308
310
if self .generate :
@@ -317,11 +319,13 @@ def build_sequential(self, build_timings, packages: List[ACBSPackageInfo]):
317
319
if not task .build_location :
318
320
build_dir = make_build_dir (self .tmp_dir )
319
321
task .build_location = build_dir
320
- process_source (task , source_name )
322
+ if not self .bootstrap_ab_only :
323
+ process_source (task , source_name )
321
324
else :
322
325
# First sub-package in a meta-package
323
326
if not has_stamp (task .build_location ):
324
- process_source (task , source_name )
327
+ if not self .bootstrap_ab_only :
328
+ process_source (task , source_name )
325
329
Path (os .path .join (task .build_location , '.acbs-stamp' )).touch ()
326
330
build_dir = task .build_location
327
331
if task .subdir :
@@ -332,14 +336,14 @@ def build_sequential(self, build_timings, packages: List[ACBSPackageInfo]):
332
336
raise RuntimeError (
333
337
'Could not determine sub-directory, please specify manually.' )
334
338
build_dir = os .path .join (build_dir , subdir )
335
- if task .installables :
339
+ if task .installables and not self . bootstrap_ab_only :
336
340
logging .info ('Installing dependencies from repository...' )
337
341
install_from_repo (task .installables , self .force_use_apt )
338
342
start = time .monotonic ()
339
343
task_name = f'{ task .name } ({ task .bin_arch } @ { task .epoch + ":" if task .epoch else "" } { task .version } -{ task .rel } )'
340
344
try :
341
345
scoped_stage2 = ACBSPackageInfo .is_in_stage2 (task .modifiers ) | self .stage2
342
- invoke_autobuild (task , build_dir , scoped_stage2 )
346
+ invoke_autobuild (task , build_dir , scoped_stage2 , self . bootstrap_ab_only )
343
347
check_artifact (task .name , build_dir )
344
348
except Exception :
345
349
# early printing of build summary before exploding
0 commit comments