mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
utils: change os.mkdir to self.mkpath to create intermediary dirs
Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
parent
39539f381d
commit
a3eca67f38
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class Install(_install):
|
|||
polkit = polkit_template.format(LIB_PATH=self.install_lib)
|
||||
|
||||
if not os.path.exists(prefix + '/usr/share/polkit-1/actions/'):
|
||||
os.mkdir(prefix + '/usr/share/polkit-1/actions/')
|
||||
self.mkpath(prefix + '/usr/share/polkit-1/actions/')
|
||||
with open(prefix + '/usr/share/polkit-1/actions/' + pkexec_action_name, 'w') as f:
|
||||
f.write(polkit)
|
||||
os.chmod(prefix + '/usr/share/polkit-1/actions/' + pkexec_action_name, 0o644)
|
||||
|
|
Loading…
Add table
Reference in a new issue