File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2647,6 +2647,11 @@ def manage_repo():
2647
2647
2648
2648
if args .family :
2649
2649
filtered_family = args .family .upper ()
2650
+ filtered_family = filtered_family .removeprefix ("STM32" )
2651
+ while filtered_family .endswith ("X" ):
2652
+ filtered_family = filtered_family .rstrip ("X" )
2653
+ filtered_family = f"STM32{ filtered_family } "
2654
+
2650
2655
# Get all xml files
2651
2656
mcu_list = sorted (dirMCU .glob ("STM32*.xml" ))
2652
2657
@@ -2678,6 +2683,13 @@ def manage_repo():
2678
2683
and filtered_family not in mcu_family
2679
2684
or any (skp in mcu_refname for skp in refname_filter )
2680
2685
):
2686
+ # Add a warning if filtered family is requested
2687
+ if filtered_family and filtered_family not in refname_filter :
2688
+ for skp in refname_filter :
2689
+ if skp == filtered_family :
2690
+ print (f"Requested family { filtered_family } is filtered!" )
2691
+ print ("Please update the refname_filter list." )
2692
+ quit ()
2681
2693
xml_mcu .unlink ()
2682
2694
continue
2683
2695
You can’t perform that action at this time.
0 commit comments