summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@richardiv.omgwallhack.org>2011-01-20 23:28:59 -0800
committerJoe Rayhawk <jrayhawk@richardiv.omgwallhack.org>2011-01-20 23:28:59 -0800
commit54bdf5b294ddb85fd1650860c0b026a70443cff5 (patch)
treeae2417c723dab1de0ec244a1733ac1e554df1a67
parentb78077ad4080c4c2ababac4a4bf9a9f54500e845 (diff)
downloadpiny-code-54bdf5b294ddb85fd1650860c0b026a70443cff5.tar.gz
piny-code-54bdf5b294ddb85fd1650860c0b026a70443cff5.zip
Compile-testing ikiwiki overrides files and dying on failure.
-rw-r--r--libpiny/lib/Piny/Repo.pm2
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 );