Update of /cvsroot/module-build/Module-Build/lib/Module/Build
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20873/lib/Module/Build
Modified Files:
Base.pm
Log Message:
Skip the check for prereqs if there are none.
Index: Base.pm
===================================================================
RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v
retrieving revision 1.494
retrieving revision 1.495
diff -u -d -r1.494 -r1.495
--- Base.pm 3 Oct 2005 09:12:59 -0000 1.494
+++ Base.pm 3 Oct 2005 09:55:25 -0000 1.495
@@ -933,6 +933,11 @@
"but Module::Build is not configured with C_support");
}
+ # Check to see if there are any prereqs to check
+ my $has_prereqs = grep { keys %{$self->$_()} }
+ @{ $self->prereq_action_types };
+ return 1 unless $has_prereqs;
+
$self->log_info("Checking prerequisites...\n");
my $failures = $self->prereq_failures;
|