diff options
author | Joe Rayhawk <jrayhawk@richardiv.omgwallhack.org> | 2011-01-20 23:28:59 -0800 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@richardiv.omgwallhack.org> | 2011-01-20 23:28:59 -0800 |
commit | 54bdf5b294ddb85fd1650860c0b026a70443cff5 (patch) | |
tree | ae2417c723dab1de0ec244a1733ac1e554df1a67 | |
parent | b78077ad4080c4c2ababac4a4bf9a9f54500e845 (diff) | |
download | piny-code-54bdf5b294ddb85fd1650860c0b026a70443cff5.tar.gz piny-code-54bdf5b294ddb85fd1650860c0b026a70443cff5.zip |
Compile-testing ikiwiki overrides files and dying on failure.
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index a80a997..da39631 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -543,6 +543,7 @@ sub _build_ikiwiki_setup { ]; if ( -e "/etc/ikiwiki/piny/" . $s->name . ".setup.pl" ) { + system( "perl", "-C", "/etc/ikiwiki/piny/" . $s->name . ".setup.pl" ) && die ( 'Failed to compile ikiwiki overrides file!' ); undef $@; eval { package TEMP; @@ -552,7 +553,6 @@ sub _build_ikiwiki_setup { no strict 'vars'; do "/etc/ikiwiki/piny/" . $s->name . ".setup.pl"; }; - if ( not $@ ) { $config = $TEMP::conf; } else { die "Error loading /etc/ikiwiki/piny/" . $s->name . ".setup.pl: $@\n" }; }; return writeSetup( $package, $config ); |