From 54bdf5b294ddb85fd1650860c0b026a70443cff5 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Thu, 20 Jan 2011 23:28:59 -0800 Subject: Compile-testing ikiwiki overrides files and dying on failure. --- libpiny/lib/Piny/Repo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- cgit v1.2.3