diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2011-05-07 00:29:01 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2011-05-07 00:29:01 -0700 |
commit | 954d66d99779c71bf146c8c5fe5ac48494cc739d (patch) | |
tree | a42785e84c56824c6b4a2ba38abfbbd286d08da2 /libpiny/lib/Piny | |
parent | 4d947573b09437f9b5757b871bd3776c5f1ff46d (diff) | |
download | piny-code-954d66d99779c71bf146c8c5fe5ac48494cc739d.tar.gz piny-code-954d66d99779c71bf146c8c5fe5ac48494cc739d.zip |
Fix various outstanding issues with today's changes
Diffstat (limited to 'libpiny/lib/Piny')
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index 86abc45..0d2cb64 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -318,6 +318,7 @@ sub destroy { sub destroy_git { my ( $s ) = @_; system( "rm", "-rf", $s->path ); + system( "delgroup", $s->group->name ); }; sub destroy_ikiwiki { @@ -355,7 +356,6 @@ sub destroy_ikiwiki { system( "deluser", "--remove-home", "iki-" . $s->shortname ); system( "delgroup", "iki-" . $s->shortname ); - system( "delgroup", $s->group->name ); }; @@ -398,7 +398,7 @@ sub create { my ( $class, $name, $description, $source ) = @_; if ( not defined $source) { - $source = Piny::Environment->config->piny_template; + $source = Piny::Config->new->piny_template; }; my $user = Piny::Environment->instance->user; @@ -424,7 +424,8 @@ sub create { $repo->description( $description ); - $repo->rebuild; + $repo->rebuild_git; + $repo->rebuild_ikiwiki; return $repo; }; |