@@ -121,7 +121,10 @@ def prepare_patch_recipes() -> List[Path]:
121
121
dest_recipe_file = dest_recipe_dir / "recipe.yaml"
122
122
123
123
copy_patch_files (filtered , recipe_file .parent , dest_recipe_dir )
124
- write_minimal_recipe (dest_recipe_file , pkg , filtered )
124
+ # append "-check-patches" to the package name in the dummy recipe
125
+ patched_pkg = dict (pkg )
126
+ patched_pkg ["name" ] = f"{ patched_pkg ['name' ]} -check-patches"
127
+ write_minimal_recipe (dest_recipe_file , patched_pkg , filtered )
125
128
recreated .append (dest_recipe_file )
126
129
127
130
return recreated
@@ -142,31 +145,30 @@ def main() -> None:
142
145
args = parse_args ()
143
146
144
147
if not RECIPES_DIR .is_dir ():
145
- print ("❌ recipes/ folder not found – abort." )
146
- return
148
+ print ("recipes/ folder not found – abort." )
149
+ sys . exit ( 1 )
147
150
148
151
if args .clean :
149
152
shutil .rmtree (PATCH_RECIPES_DIR , ignore_errors = True )
150
- print ("🧹 Removed recipes_only_patch/" )
153
+ print (" Removed recipes_only_patch/" )
151
154
return
152
155
153
156
if PATCH_RECIPES_DIR .exists ():
154
- print ("♻️ Refreshing recipes_only_patch/ …" )
157
+ print ("Refreshing recipes_only_patch/ …" )
155
158
shutil .rmtree (PATCH_RECIPES_DIR )
156
159
157
160
recreated = prepare_patch_recipes ()
158
161
if not recreated :
159
- print ("⚠️ No recipes with patches found – nothing to test." )
162
+ print ("No recipes with patches found – nothing to test." )
160
163
return
161
164
162
- print (f"✅ Prepared { len (recreated )} minimal recipe(s) in { PATCH_RECIPES_DIR } /" )
165
+ print (f"Prepared { len (recreated )} minimal recipe(s) in { PATCH_RECIPES_DIR } /" )
163
166
164
167
if not args .dry :
165
168
run_rattler_build ()
166
169
else :
167
- print ("💡 --dry given – rattler-build not executed." )
170
+ print ("--dry given – rattler-build not executed." )
168
171
169
172
170
173
if __name__ == "__main__" :
171
174
main ()
172
-
0 commit comments