summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 );