selinux/python
Petr Lautrbach 7ff1d7f1c2 sepolicy: Call os.makedirs() with exist_ok=True
Since commit 7494bb1298 ("sepolicy: generate man pages in parallel")
man pages are generated in parallel and there's a race between
os.path.exists() and os.makedirs().

The check os.path.exists() is not necessary when os.makedirs() is called
with exist_ok=True.

Fixes:
/usr/bin/sepolicy manpage -a -p /__w/usr/share/man/man8/ -w -r /__w/
FileExistsError: [Errno 17] File exists: '/__w/usr/share/man/man8/'

Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
2022-12-16 16:43:48 -05:00
..
audit2allow python: Fix typo in audit2allow.1 example 2022-11-21 14:28:31 -05:00
chcat python: Harden tools against "rogue" modules 2022-11-09 07:53:27 -05:00
po Update translations 2022-10-05 08:13:26 -04:00
semanage python: Harden tools against "rogue" modules 2022-11-09 07:53:27 -05:00
sepolgen Fix E275 missing whitespace after keyword 2022-11-23 08:29:59 -05:00
sepolicy sepolicy: Call os.makedirs() with exist_ok=True 2022-12-16 16:43:48 -05:00
LICENSE docs: provide a top level LICENSE file 2022-10-05 08:20:38 -04:00
Makefile Split po/ translation files into the relevant sub-directories 2022-04-06 10:52:41 +02:00
VERSION Update VERSIONs to 3.4 for release. 2022-05-18 16:51:03 +02:00