summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2013-06-19 18:34:52 -0400
committerDavid Golden <dagolden@cpan.org>2013-06-19 18:34:52 -0400
commit25b25355681b1b113ebbf386a7ebe3158ae21ffe (patch)
treefc92faea25dae1cf88a0c14912d30fc38d0de190
parent14fd9356c9a6abaf104daad94dfc9ff5234938a6 (diff)
downloadperl-25b25355681b1b113ebbf386a7ebe3158ae21ffe.tar.gz
fix core-cpan-diff treatment of 'undef'
-rw-r--r--Porting/core-cpan-diff6
1 files changed, 2 insertions, 4 deletions
diff --git a/Porting/core-cpan-diff b/Porting/core-cpan-diff
index 712b8965ab..b3afa30e9f 100644
--- a/Porting/core-cpan-diff
+++ b/Porting/core-cpan-diff
@@ -116,8 +116,6 @@ sub run {
'x|crosscheck' => \$do_crosscheck,
) or usage;
- @wanted_upstreams = map { $_ eq 'undef' ? undef : $_ } @wanted_upstreams;
-
my @modules;
usage("Cannot mix -a with module list") if $scan_all && @ARGV;
@@ -241,7 +239,7 @@ sub do_compare {
warn "WARNING: duplicate entry for $dist in $module\n";
}
- my $upstream = $m->{UPSTREAM};
+ my $upstream = $m->{UPSTREAM} // 'undef';
next if @$wanted_upstreams and !$wanted_upstream{$upstream};
print $outfh "\n$module - "
@@ -490,7 +488,7 @@ sub do_crosscheck {
my $pdist = $m->{DISTRIBUTION};
die "ERROR: $module has no DISTRIBUTION entry\n" unless defined $pdist;
- my $upstream = $m->{UPSTREAM};
+ my $upstream = $m->{UPSTREAM} // 'undef';
next if @$wanted_upstreams and !$wanted_upstream{$upstream};
my $cdist = $modules{$module};