From 9d070b5c9889d6414b10533d11b35ca8e525c525 Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 20 Aug 2015 19:06:30 -0500 Subject: [PATCH] FS-8021 #resolve [filebug.pl allow comma separated component entry] --- support-d/utils/filebug.pl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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}) {