Commit 0c57e438 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 258579: t/Support/Files.pm should use File::Find; patch by Marc…

Patch for bug 258579: t/Support/Files.pm should use File::Find; patch by Marc Schumann <wurblzap@gmail.com>, r=vladd, a=justdave.
parent 12ab11bb
......@@ -23,6 +23,8 @@
package Support::Files;
use File::Find;
# exclude_deps is a hash of arrays listing the files to be excluded
# if a module is not available
#
......@@ -33,11 +35,8 @@ package Support::Files;
);
# XXX - this file should really be rewritten to use File::Find or similar
$file = '*';
@files = (glob($file), glob('Bugzilla/*.pm'), glob('Bugzilla/*/*.pm'),
glob('Bugzilla/*/*/*.pm'), glob('Bugzilla/*/*/*/*.pm'),
glob('Bugzilla/*/*/*/*/*.pm'));
@files = glob('*');
find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, 'Bugzilla');
sub have_pkg {
my ($pkg) = @_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment