Author: turnstep
Date: Sun May 25 07:47:00 2008
New Revision: 11314
Modified:
DBD-Pg/trunk/Makefile.PL
Log:
Allow the show to go on if the ENVs exists but are empty
Modified: DBD-Pg/trunk/Makefile.PL
==============================================================================
--- DBD-Pg/trunk/Makefile.PL (original)
+++ DBD-Pg/trunk/Makefile.PL Sun May 25 07:47:00 2008
@@ -109,7 +109,7 @@
my $baddir;
for my $d (qw/HOME INCLUDE/) {
- next if ! exists $ENV{"POSTGRES_$d"};
+ next if ! exists $ENV{"POSTGRES_$d"} or ! length $ENV{"POSTGRES_$d"};
if (! -d $ENV{"POSTGRES_$d"}) {
printf "The environment variable %s points to a non-existent
directory: %s\n",
"POSTGRES_$d", $ENV{"POSTGRES_$d"};