diff options
| author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-05-05 19:14:04 -0700 |
|---|---|---|
| committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-05-05 19:14:04 -0700 |
| commit | 9500ea0126044d372fbd311966bfa077f9d135fe (patch) | |
| tree | d3512d007a0fc0f5e73656e609bf9c59863a03cd /Bugzilla/Install | |
| parent | 62efd548bbd87e4018cee195e6c74cd8a4e13d7b (diff) | |
| download | bugs-9500ea0126044d372fbd311966bfa077f9d135fe.tar bugs-9500ea0126044d372fbd311966bfa077f9d135fe.tar.gz bugs-9500ea0126044d372fbd311966bfa077f9d135fe.tar.bz2 bugs-9500ea0126044d372fbd311966bfa077f9d135fe.tar.xz bugs-9500ea0126044d372fbd311966bfa077f9d135fe.zip | |
Bug 562551: Allow template-only extensions to work
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Install')
| -rw-r--r-- | Bugzilla/Install/Util.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Bugzilla/Install/Util.pm b/Bugzilla/Install/Util.pm index 7bafa9330..7779f6bda 100644 --- a/Bugzilla/Install/Util.pm +++ b/Bugzilla/Install/Util.pm @@ -418,6 +418,18 @@ sub _template_base_directories { } } + # Extensions may also contain *only* templates, in which case they + # won't show up in extension_requirement_packages. + foreach my $path (_extension_paths()) { + next if !-d $path; + if (!-e "$path/Extension.pm" and !-e "$path/Config.pm" + and -d "$path/template") + { + push(@template_dirs, "$path/template"); + } + } + + push(@template_dirs, bz_locations()->{'templatedir'}); return \@template_dirs; } |
