File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -939,6 +939,11 @@ def generate_new_required_phrase_rules(
939
939
# check if we already have a rule we can match for this required phrase tag if needed
940
940
matched_rule = rule_exists (text = phrase .raw_text )
941
941
if matched_rule :
942
+ if matched_rule .is_from_license :
943
+ if TRACE and verbose :
944
+ click .echo (f'Skipping rule matched to license: { matched_rule .identifier } .' )
945
+ continue
946
+
942
947
actual_rule = current_rules_by_identifier [matched_rule .identifier ]
943
948
if actual_rule .skip_for_required_phrase_generation :
944
949
if TRACE and verbose :
@@ -954,6 +959,8 @@ def generate_new_required_phrase_rules(
954
959
# this combo does not work, make it a reference
955
960
if actual_rule .is_license_intro or actual_rule .is_license_clue :
956
961
actual_rule .is_license_reference = True
962
+ actual_rule .is_license_intro = False
963
+ actual_rule .is_license_clue = False
957
964
actual_rule .is_required_phrase = True
958
965
modified = True
959
966
You can’t perform that action at this time.
0 commit comments