Skip to content

Commit

Permalink
Fixed deps conversion bug and changed perl dep to be versionless.
Browse files Browse the repository at this point in the history
  • Loading branch information
juster committed Oct 30, 2009
1 parent d921dfb commit 2b7edfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/CPANPLUS/Dist/Arch.pm
Expand Up @@ -614,17 +614,17 @@ sub _translate_cpan_deps
}

# Translate the module's distribution name into a package name...
my $modobj = $backend->parse_module( module => $modname );
my $modobj = $backend->parse_module( module => $modname )
or next CPAN_DEP_LOOP;
my $pkgname = dist_pkgname( $modobj->package_name );

$pkgdeps{$pkgname} = ( $depver eq '0'
? $depver
: dist_pkgver( $depver ) );
}

# Default to requiring the current perl version used to compile
# the module if there is no explicit perl version required...
$pkgdeps{perl} ||= sprintf '%vd', $PERL_VERSION;
# Always require perl.
$pkgdeps{perl} ||= 0;

# Merge in the XS C library package deps...
my $xs_deps = $self->_translate_xs_deps;
Expand Down

0 comments on commit 2b7edfa

Please sign in to comment.