FS-8021 #resolve [filebug.pl allow comma separated component entry]

This commit is contained in:
Brian West 2015-08-20 19:06:30 -05:00
parent 8f5a8a91cd
commit 9d070b5c98
1 changed files with 10 additions and 2 deletions

View File

@ -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}) {