@@ -55,6 +55,9 @@ def do_handle_update_repos(self, subcmd, opts, project):
5555 @cmdln .option ('--only-release-packages' , action = 'store_true' , help = 'Generate 000release-packages only' )
5656 @cmdln .option ('--only-update-weakremovers' , action = 'store_true' , help = 'Update weakremovers.inc file only' )
5757 @cmdln .option ('--custom-cache-tag' , help = 'add custom tag to cache dir to avoid issues when running in parallel' )
58+ @cmdln .option ('--proceed-on-dirty' , default = False , action = 'store_true' , help = 'Package lists are best generated when the target project '
59+ 'is done building and is clean. Toggling this option allows the script to keep computing even if the target project is '
60+ 'still building or is dirty.' )
5861 def do_update_and_solve (self , subcmd , opts ):
5962 """${cmd_name}: update and solve for given scope
6063
@@ -112,7 +115,8 @@ def solve_project(project, scope: str):
112115 only_release_packages = opts .only_release_packages ,
113116 only_update_weakremovers = opts .only_update_weakremovers ,
114117 stop_after_solve = opts .stop_after_solve ,
115- custom_cache_tag = opts .custom_cache_tag )
118+ custom_cache_tag = opts .custom_cache_tag ,
119+ exit_on_dirty = not opts .proceed_on_dirty )
116120 except MismatchedRepoException :
117121 logging .error ("Failed to create weakremovers.inc due to mismatch in repos - project most likey started building again!" )
118122 # for stagings we have to be strict on the exit value
0 commit comments