summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-07-02 07:00:23 +0200
committerByron Jones <bjones@mozilla.com>2012-07-02 07:00:23 +0200
commit8faca0e7ced0666c3929f93fdfd023ef60bf68ca (patch)
treef3bcad4320afe96160052d3481eacaf78f3270a8 /extensions
parent9327c8012e2440509b91dfa8791d9cd5db27afda (diff)
downloadbugzilla-8faca0e7ced0666c3929f93fdfd023ef60bf68ca.tar.gz
bugzilla-8faca0e7ced0666c3929f93fdfd023ef60bf68ca.tar.xz
Bug 769720: add tracking flags to Release Engineering components
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BMO/Extension.pm15
-rw-r--r--extensions/BMO/lib/Data.pm4
2 files changed, 13 insertions, 6 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 410731936..5960de78c 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -273,12 +273,19 @@ sub cf_hidden_in_product {
foreach my $product (keys %$products) {
my $components = $products->{$product};
- my $found_component = 0;
+ my $found_component = 0;
if (@$components) {
foreach my $component (@$components) {
- if (grep($_ eq $component, @$component_list)) {
- $found_component = 1;
- last;
+ if (ref($component) eq 'Regexp') {
+ if (grep($_ =~ $component, @$component_list)) {
+ $found_component = 1;
+ last;
+ }
+ } else {
+ if (grep($_ eq $component, @$component_list)) {
+ $found_component = 1;
+ last;
+ }
}
}
}
diff --git a/extensions/BMO/lib/Data.pm b/extensions/BMO/lib/Data.pm
index cb16fd108..02d5aadd3 100644
--- a/extensions/BMO/lib/Data.pm
+++ b/extensions/BMO/lib/Data.pm
@@ -73,7 +73,7 @@ tie(%$cf_visible_in_products, "Tie::IxHash",
"Fennec" => [],
"Fennec Native" => [],
"Marketing" => ["General"],
- "mozilla.org" => ["Release Engineering"],
+ "mozilla.org" => ["Release Engineering", qr/^Release Engineering: /],
"Mozilla Localizations" => [],
"Mozilla Services" => [],
"NSPR" => [],
@@ -107,7 +107,7 @@ tie(%$cf_visible_in_products, "Tie::IxHash",
"Fennec Native" => [],
"Firefox" => [],
"MailNews Core" => [],
- "mozilla.org" => ["Release Engineering"],
+ "mozilla.org" => ["Release Engineering", qr/^Release Engineering: /],
"Mozilla QA" => ["Mozmill Tests"],
"Mozilla Localizations" => [],
"Mozilla Services" => [],