1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-16 23:47:38 +02:00

Fixed issue in doc info output with --require.

Section names were being repeated in the info output when multiple --require options depended on the same sections.
This commit is contained in:
David Steele
2016-06-18 09:22:26 -04:00
parent cb32a8ab1f
commit e988b96ece
2 changed files with 9 additions and 2 deletions

View File

@ -362,9 +362,12 @@ sub required
{
if ($strChildPath =~ /^$strPath$/ || $strChildPath =~ /^$strPath\/.*$/)
{
&log(INFO, " require section: ${strChildPath}");
if (!defined(${$self->{oSectionRequired}}{$strChildPath}))
{
&log(INFO, " require section: ${strChildPath}");
${$self->{oSectionRequired}}{$strChildPath} = true;
${$self->{oSectionRequired}}{$strChildPath} = true;
}
}
}
}