diff options
Diffstat (limited to 'libpiny')
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 11 |
1 files changed, 9 insertions, 2 deletions
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; }; |