From 8629b2227631419ef53b32303c77779a38ebb4f1 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Wed, 11 May 2011 19:32:00 -0700 Subject: Adding piny_ikiwiki support for Piny::Repo->create and ->rebuild --- libpiny/lib/Piny/Repo.pm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libpiny/lib/Piny/Repo.pm') diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index 0d2cb64..0d2496f 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -212,8 +212,12 @@ sub rebuild { my ( $s ) = @_; $s->rebuild_git; + $s->destroy_ikiwiki; - $s->rebuild_ikiwiki; + if ( $s->config->piny_ikiwiki =~ /^(1|true)$/ ) { + $s->rebuild_ikiwiki; + }; + }; sub rebuild_git { @@ -425,7 +429,10 @@ sub create { $repo->description( $description ); $repo->rebuild_git; - $repo->rebuild_ikiwiki; + + if ( $repo->config->piny_ikiwiki =~ /^(1|true)$/ ) { + $repo->rebuild_ikiwiki; + }; return $repo; }; -- cgit v1.2.3