55import re
66import git
77
8- FIPS_PROTECTED_DIRECOTRIES = [b'arch/x86/crypto/' , b'cypto/aysmmetric_keys /' , b'crypto/' , b'drivers/crypto/' ,
9- b'drivers/char/random.c' , b'include/cyrpto ' ]
8+ FIPS_PROTECTED_DIRECTORIES = [b'arch/x86/crypto/' , b'cypto/asymmetric_keys /' , b'crypto/' , b'drivers/crypto/' ,
9+ b'drivers/char/random.c' , b'include/crypto ' ]
1010
1111def find_common_tag (old_tags , new_tags ):
1212 for tag in old_tags :
@@ -46,7 +46,7 @@ def check_for_fips_protected_changes(repo, branch, common_tag):
4646 shas_to_check = []
4747 commits_checked = 0
4848
49- print ('[rolling release update] Checkking modifications of shas' )
49+ print ('[rolling release update] Checking modifications of shas' )
5050 for sha in results .stdout .split (b'\n ' ):
5151 commits_checked += 1
5252 if commits_checked % (num_commits // 10 ) == 0 :
@@ -68,7 +68,7 @@ def check_for_fips_protected_changes(repo, branch, common_tag):
6868 if line == b'' :
6969 continue
7070
71- for dir in FIPS_PROTECTED_DIRECOTRIES :
71+ for dir in FIPS_PROTECTED_DIRECTORIES :
7272 if line .startswith (dir ):
7373 print (f'FIPS protected directory change found in commit { sha } ' )
7474 print (sha_hash_and_subject )
@@ -196,7 +196,7 @@ def check_for_fips_protected_changes(repo, branch, common_tag):
196196 exit (1 )
197197
198198
199- print ('[rolling release update] Crating Map of all new commits from last rolling release fork' )
199+ print ('[rolling release update] Creating Map of all new commits from last rolling release fork' )
200200 new_base_commit_map = {}
201201 new_base_commit_map_rev = {}
202202 new_base_commits = repo .git .log (f'{ latest_resf_sha .decode ()} ..HEAD' )
0 commit comments