[DBD::Pg] If we can't figure out how to get to the pg_config information, exit 0 insteaed of die-ing.
dbdpg-commits-gENoVmVU/[email protected] Thu, 20 Feb 2014 09:24:24 -0500
| Newsgroups | gmane.comp.db.postgresql.dbdpg.cvs |
|---|---|
| Message-ID | <[email protected]> |
Committed by Greg Sabino Mullane <greg-O9fzpki4YnJWk0Htik3J/[email protected]> If we can't figure out how to get to the pg_config information, exit 0 insteaed of die-ing. --- Makefile.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 1b2e695..8592007 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -109,7 +109,8 @@ $POSTGRES_INCLUDE = $ENV{POSTGRES_INCLUDE} || $pg->inc_dir; if (! defined $POSTGRES_INCLUDE) { if (! defined $ENV{POSTGRES_HOME}) { - die "No POSTGRES_HOME defined, cannot find automatically\n"; + warn "No POSTGRES_HOME defined, cannot find automatically\n"; + exit 0; } $POSTGRES_INCLUDE = "$ENV{POSTGRES_HOME}/include"; } -- 1.8.4