| From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Fix Perl coding error in msvc build system |
| Date: | 2015-02-19 01:26:36 |
| Message-ID: | E1YOFsy-0002pD-Ax@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Fix Perl coding error in msvc build system
Code like
open(P, "cl /? 2>&1 |") || die "cl command not found";
does not actually catch any errors, because the exit status of the
command before the pipe is ignored. The fix is to look at $?.
This also gave the opportunity to clean up the logic of this code a bit.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/d30292b8c45a1d909ff7d84bd6787c8827134fc3
Modified Files
--------------
src/tools/msvc/Solution.pm | 14 +++-----------
src/tools/msvc/VSObjectFactory.pm | 28 +++++++---------------------
2 files changed, 10 insertions(+), 32 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2015-02-19 01:53:41 | pgsql: Split array_push into separate array_append and array_prepend fu |
| Previous Message | Alvaro Herrera | 2015-02-18 17:44:56 | pgsql: Fix opclass/opfamily identity strings |