Merge pull request #25912 from DaanDeMeyer/ukify

ukify fixes
This commit is contained in:
Daan De Meyer
2023-01-02 16:07:58 +01:00
committed by GitHub

View File

@@ -69,7 +69,10 @@ def path_is_readable(s: str | None) -> pathlib.Path | None:
if s is None:
return None
p = pathlib.Path(s)
p.open().close()
try:
p.open().close()
except IsADirectoryError:
pass
return p
@@ -684,7 +687,7 @@ usage: ukify [options…] linux initrd…
p.add_argument('--tools',
type=pathlib.Path,
nargs='+',
action='append',
help='Directories to search for tools (systemd-measure, llvm-objcopy, ...)')
p.add_argument('--output', '-o',