[Libguestfs] [p2v PATCH 2/4] podwrapper: the tools here start with p2v

Pino Toscano ptoscano at redhat.com
Thu Jul 11 16:01:08 UTC 2019


Adjust the prefix check accordingly, so non-tool documentations do not
need --warning explicitly.
---
 podwrapper.pl.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/podwrapper.pl.in b/podwrapper.pl.in
index 2b276c4..f8b90ad 100755
--- a/podwrapper.pl.in
+++ b/podwrapper.pl.in
@@ -244,7 +244,7 @@ $name = basename ($input, ".pod") unless defined $name;
 $section = 1 unless defined $section;
 
 # Is it a user command line tool?
-my $cli_tool = $section == 1 && $name !~ /^guestfs-/;
+my $cli_tool = $section == 1 && $name !~ /^p2v-/;
 
 # Warning parameter is mandatory for user tools in section 1.
 if ($strict_checks && $cli_tool) {
-- 
2.21.0




More information about the Libguestfs mailing list