Changeset 21782

Show
Ignore:
Timestamp:
10/21/08 15:49:05 (5 years ago)
Author:
yappo
Message:

install_flavor には flavor name を渡さなくてもよい

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Module-Setup/trunk/lib/Module/Setup.pm

    r21775 r21782  
    226226 
    227227sub install_flavor { 
    228     my($self, $name, $tmpl) = @_; 
     228    my($self, $tmpl) = @_; 
    229229 
    230230    my $flavor = $self->base_dir->flavor; 
     
    236236    } elsif (exists $tmpl->{plugin} && $tmpl->{plugin}) { 
    237237        $path = $flavor->plugins->path_to(split '/', $tmpl->{plugin}); 
     238    } else { 
     239        return; 
    238240    } 
    239241 
     
    267269            $config = $tmpl->{config}; 
    268270        } else { 
    269             $self->install_flavor($name, $tmpl); 
     271            $self->install_flavor($tmpl); 
    270272        } 
    271273    }