summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/src/libpiny/lib/Piny/Repo.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/src/libpiny/lib/Piny/Repo.pm b/usr/src/libpiny/lib/Piny/Repo.pm
index 5dd965a..ca8ae07 100644
--- a/usr/src/libpiny/lib/Piny/Repo.pm
+++ b/usr/src/libpiny/lib/Piny/Repo.pm
@@ -508,6 +508,19 @@ sub _build_ikiwiki_setup {
}
];
+ if ( -e "/etc/ikiwiki/piny/" . $s->name . ".setup.pl" ) {
+ undef $@;
+ eval {
+ package TEMP;
+ use Piny;
+ $TEMP::repo = $s;
+ $TEMP::conf = $config;
+ no strict 'vars';
+ do "/etc/ikiwiki/piny/" . $s->name . ".setup.pl";
+ };
+ if ( not $@ ) { $config = $TEMP::conf; };
+ };
+
return writeSetup( $package, $config );
};