From: Brian West Date: Fri, 21 Aug 2015 00:06:30 +0000 (-0500) Subject: FS-8021 #resolve [filebug.pl allow comma separated component entry] X-Git-Tag: v1.6.2~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d070b5c9889d6414b10533d11b35ca8e525c525;p=thirdparty%2Ffreeswitch.git FS-8021 #resolve [filebug.pl allow comma separated component entry] --- diff --git a/support-d/utils/filebug.pl b/support-d/utils/filebug.pl index d3a40b7ae5..6da941e733 100755 --- a/support-d/utils/filebug.pl +++ b/support-d/utils/filebug.pl @@ -92,7 +92,11 @@ if ($opts{versions}) { } if ($opts{components}) { - $opts{components_array} = [map {{name => $_}} split(" ", $opts{components})]; + if ($opts{components} =~ /,/) { + $opts{components_array} = [map {{name => $_}} split(" ", $opts{components})]; + } else { + $opts{components_array} = [map {{name => $_}} split(" ", $opts{components})]; + } } else { $opts{components_array} = [map {{name => $_}} ($default_components)]; $opts{components} = $default_components; @@ -169,7 +173,11 @@ if ($opts{askall}) { $opts{versions_array} = [map {{name => $_}} split(" ", $opts{versions})]; $opts{summary} = getfield("Summary: ", $opts{summary}); $opts{components} = getfield("Components: ", $opts{components}); - $opts{components_array} = [map {{name => $_}} split(" ", $opts{components})]; + if ($opts{components} =~ /,/) { + $opts{components_array} = [map {{name => $_}} split(",", $opts{components})]; + } else { + $opts{components_array} = [map {{name => $_}} split(" ", $opts{components})]; + } $opts{hash} = getfield("GIT Hash: ", $opts{hash}); if ($opts{noedit}) {