From 75b15ff340c5bd17c59862c0d1ab4de38d24e864 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Mon, 8 Oct 2012 13:03:36 +0200 Subject: [PATCH] Bug 652047: checksetup.pl fails to compile/run if the Voting extension is enabled on a fresh install r=glob a=LpSolit --- extensions/Voting/Config.pm | 19 +++++++++++++++++++ extensions/Voting/Extension.pm | 1 - 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 extensions/Voting/Config.pm diff --git a/extensions/Voting/Config.pm b/extensions/Voting/Config.pm new file mode 100644 index 0000000000..4fefe957a6 --- /dev/null +++ b/extensions/Voting/Config.pm @@ -0,0 +1,19 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# This Source Code Form is "Incompatible With Secondary Licenses", as +# defined by the Mozilla Public License, v. 2.0. + +package Bugzilla::Extension::Voting; +use strict; + +use constant NAME => 'Voting'; + +use constant REQUIRED_MODULES => [ +]; + +use constant OPTIONAL_MODULES => [ +]; + +__PACKAGE__->NAME; diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm index 4cb8171e8c..49ab99e13b 100644 --- a/extensions/Voting/Extension.pm +++ b/extensions/Voting/Extension.pm @@ -21,7 +21,6 @@ use Bugzilla::Token; use List::Util qw(min); -use constant NAME => 'Voting'; use constant VERSION => BUGZILLA_VERSION; use constant DEFAULT_VOTES_PER_BUG => 1; # These came from Bugzilla itself, so they maintain the old numbers -- 2.47.2