Skip to content

Commit 476ddbd

Browse files
committedJul 13, 2012
Make Apache2::request optional and add a dependency for PLack to testEnvironment
1 parent 544a62d commit 476ddbd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎sbin/testEnvironment.pl

+6-3
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ BEGIN
115115
checkModule("POE", 1.005 );
116116
checkModule("POE::Component::IKC::Server", 0.2001 );
117117
checkModule("POE::Component::Client::HTTP", 0.88 );
118-
checkModule("Apache2::Request", 2.08 );
118+
# In plebgui the mod_perl modules are optional
119+
checkModule("Apache2::Request", 2.08, 2 );
119120
checkModule("URI::Escape", "3.29" );
120121
checkModule("POSIX" );
121122
checkModule("List::Util" );
@@ -162,6 +163,8 @@ BEGIN
162163
checkModule('Data::ICal', '0.16' );
163164
checkModule('common::sense', '3.2' );
164165
checkModule('Geo::Coder::Googlev3', '0.07' );
166+
# Plack is required for plebgui
167+
checkModule('Plack' );
165168

166169
failAndExit("Required modules are missing, running no more checks.") if $missingModule;
167170

@@ -412,9 +415,9 @@ sub isIn {
412415
#----------------------------------------
413416
sub isRootRequirementMet {
414417
if (getOs() eq "Linuxish") {
415-
return ($< == 0);
418+
return ($< == 0);
416419
} else {
417-
return 1;
420+
return 1;
418421
}
419422
}
420423

0 commit comments

Comments
 (0)
Please sign in to comment.