Skip to content

Commit

Permalink
Skip the main module when auto-discovering packages
Browse files Browse the repository at this point in the history
rather than duplicate it.
  • Loading branch information
rwstauner committed Jun 14, 2011
1 parent e724015 commit ca4b3b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/mcpani
Expand Up @@ -78,6 +78,11 @@ sub add {
my $provides = _find_provides( $options{file} );

while ( my ( $module, $version ) = each( %{$provides} ) ) {
# don't auto-discover the main module that we already know about
if ( $module eq $options{module} ) {
$options{version} ||= $version;
next;
}
push @modules_to_add,
{
version => $version,
Expand Down

0 comments on commit ca4b3b2

Please sign in to comment.