From fcf87863d009a54d5852228a0aa6841a636f93ef Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 13 Oct 2010 20:26:51 -0700 Subject: First run at more advanced ikiwiki override handling. --- usr/src/libpiny/lib/Piny/Repo.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'usr') 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 ); }; -- cgit v1.2.3