File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 28
28
from pythonforandroid .graph import get_recipe_order_and_bootstrap
29
29
from pythonforandroid .toolchain import current_directory
30
30
from pythonforandroid .util import BuildInterruptingException
31
+ from pythonforandroid .recipe import Recipe
31
32
from ci .constants import TargetPython , CORE_RECIPES , BROKEN_RECIPES
32
33
33
34
@@ -78,6 +79,18 @@ def main():
78
79
recipes -= CORE_RECIPES
79
80
logger .info ('recipes to build: {}' .format (recipes ))
80
81
context = Context ()
82
+
83
+ # removing the deleted recipes for the given target (if any)
84
+ for recipe_name in recipes .copy ():
85
+ try :
86
+ Recipe .get_recipe (recipe_name , context )
87
+ except ValueError :
88
+ # recipe doesn't exist, so probably we remove it
89
+ recipes .remove (recipe_name )
90
+ logger .warning (
91
+ 'removed {} from recipes because deleted' .format (recipe_name )
92
+ )
93
+
81
94
# forces the default target
82
95
recipes_and_target = recipes | set ([target_python .name ])
83
96
try :
You can’t perform that action at this time.
0 commit comments