mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
python regex fix
This commit is contained in:
parent
375fc3b5bb
commit
1af5f1f03f
1 changed files with 2 additions and 2 deletions
|
@ -451,7 +451,7 @@ def create_new_profile(localfile):
|
|||
|
||||
if interpreter == 'perl':
|
||||
local_profile[localfile]['include']['abstractions/perl'] = True
|
||||
elif re.search('python()', interpreter):
|
||||
elif re.search('python([23]|[23]\.[0-9])?$', interpreter):
|
||||
local_profile[localfile]['include']['abstractions/python'] = True
|
||||
elif interpreter == 'ruby':
|
||||
local_profile[localfile]['include']['abstractions/ruby'] = True
|
||||
|
@ -2090,7 +2090,7 @@ def ask_the_questions():
|
|||
done = True
|
||||
match = re_match_include(path) #.search('^#include\s+<(.+)>$', path)
|
||||
if match:
|
||||
inc = match #.gropus()[0]
|
||||
inc = match #.groups()[0]
|
||||
deleted = 0
|
||||
deleted = delete_duplicates(aa[profile][hat], inc)
|
||||
aa[profile][hat]['include'][inc] = True
|
||||
|
|
Loading…
Add table
Reference in a new issue