nix-generate-from-cpan: Skip "if" package since it's part of Perl now
This commit is contained in:
parent
50b950fe8d
commit
e2ad72342e
@ -279,7 +279,7 @@ sub get_deps {
|
|||||||
next if $n eq "perl";
|
next if $n eq "perl";
|
||||||
|
|
||||||
# Hacky way to figure out if this module is part of Perl.
|
# Hacky way to figure out if this module is part of Perl.
|
||||||
if ( $n !~ /^JSON/ && $n !~ /^YAML/ && $n !~ /^Module::Pluggable/ ) {
|
if ( $n !~ /^JSON/ && $n !~ /^YAML/ && $n !~ /^Module::Pluggable/ && $n !~ /^if$/ ) {
|
||||||
eval "use $n;";
|
eval "use $n;";
|
||||||
if ( !$@ ) {
|
if ( !$@ ) {
|
||||||
DEBUG("skipping Perl-builtin module $n");
|
DEBUG("skipping Perl-builtin module $n");
|
||||||
|
Loading…
Reference in New Issue
Block a user