Permalink
Browse files

Try to create the pgxn libexec directory if it does not exist.

  • Loading branch information...
1 parent ba3c040 commit 5d2d127f3da26c42370f370ddd6068904e743c0e @theory theory committed Nov 28, 2011
Showing with 4 additions and 0 deletions.
  1. +1 −0 Build.PL
  2. +3 −0 Changes
View
@@ -11,6 +11,7 @@ my $class = Module::Build->subclass(
my $pgxn = $self->find_command('pgxn') or return $ret;
my $libexec = $self->_backticks($pgxn, 'help', '--libexec');
chomp $libexec;
+ File::Path::mkpath($libexec, 0, 0755);
if (-d $libexec) {
my $dst = File::Spec->catfile($libexec, 'pgxn-validate-meta');
$self->log_info("Creating $dst");
View
@@ -5,6 +5,9 @@ Revision history for Perl extension PGXN-Meta-Validator.
`validate_pgxn_meta` script.
- The command-line app now defaults to a file named `META.json` in the
current directory if no file name is passed.
+ - Fixed installation in the `pgxn` client libexec directory so that it
+ first creates the directory if it does not exist. This is to adjust to
+ a change in `pgxn` 1.0, which does not create the directory by default.
0.14.0 2011-08-31T03:44:57Z
- Added tests to protect against autovivication of keys.

0 comments on commit 5d2d127

Please sign in to comment.