[svn:DBD-Pg] r11314 - DBD-Pg/trunk

[email protected]
Newsgroups perl.dbd.pg.changes
Message-ID <[email protected]>
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"};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.