[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]