Commit 16f374f9 authored by Felix Lechner's avatar Felix Lechner

In Lintian::Lab::Entry, use Path::Tiny instead of system() for mkdir.

The modules in IO::Async replace the SIGCHLD handler and do not work
well together with other forms of process management. That also
applies to system() when used in the parent while a loop is active, as
might happen with lab entries. Replaces the call to system() with a
call to Path::Tiny, as a precaution.

Gbp-Dch: ignore
parent e2fcae2e
......@@ -264,8 +264,7 @@ sub create {
if (not -d $base_dir) {
# In the pool we may have to create multiple directories. On
# error we only remove the "top dir" and that is enough.
system('mkdir', '-p', $base_dir) == 0
or croak "mkdir -p $base_dir failed";
path($base_dir)->mkpath;
$madedir = 1;
} else {
# If $base_dir exists, then check if the entry exists
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment