diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-01-09 16:16:36 -0800 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-01-09 16:16:36 -0800 |
commit | 37027f54f3583e167dfca4b304cdc0f392465fd2 (patch) | |
tree | e4e520886905940aae6d42f610f789e4035788b0 /libpiny/lib/Piny/Repo.pm | |
parent | 3e9efc02288fd4cd386f825adf9017d6117e6383 (diff) | |
download | piny-code-37027f54f3583e167dfca4b304cdc0f392465fd2.tar.gz piny-code-37027f54f3583e167dfca4b304cdc0f392465fd2.zip |
Fix some mutators.
Diffstat (limited to 'libpiny/lib/Piny/Repo.pm')
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index 8ebb0f4..1acc526 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -326,8 +326,6 @@ sub _rename_repo { sub _set_description { my ( $s, $new_description, $old_description ) = @_; - return unless defined $old_description; - open( my $fd, ">", $s->path . "/description" ) or die "Unable to open " . $s->path . "/description for writing: $!"; print $fd $new_description; close( $fd ) or die "Error when closing " . $s->path . "/description: $!"; @@ -336,8 +334,6 @@ sub _set_description { sub _change_owner { my ( $s, $new_owner, $old_owner ) = @_; - return unless defined $old_owner; - find( { wanted => sub { chown( $new_owner->uid, -1, $_ ) or die "Couldn't chown $_: $!"; }, no_chdir => 1 }, $s->path . "/objects" ); $s->clear_ikiwiki_setup; |