push @requires, $atom;
}
- my $min_perl = $stat->min_perl;
my $perl = CPANPLUS::Dist::Gentoo::Atom->new(
category => 'dev-lang',
name => 'perl',
- (defined $min_perl ? (version => $min_perl, range => '>=') : ()),
+ version => $stat->min_perl,
);
@requires = CPANPLUS::Dist::Gentoo::Atom->fold($perl, @requires);
return CPANPLUS::Dist::Gentoo::Atom->new(
category => $last->category,
name => $last->name,
- (defined $version ? (version => $version, range => '>=') : ()),
+ version => $version,
ebuild => $last->ebuild,
);
}
[ { category => 'test' } => $no_info ],
[ $a0 => $a0 ],
[ { %$a0, range => '<=' } => $range_no_ver ],
- [ $a1 => { %$a1, range => '=' } ],
+ [ $a1 => { %$a1, range => '>=' } ],
[ { %$a1, range => '<=' } => { %$a1, range => '<=' } ],
[ { atom => 'test/a' } => $a0 ],
- [ { atom => 'test/a-1.0' } => { %$a1, range => '=' } ],
- [ { atom => '>=test/a-v1.0' } => { %$a1, range => '>=' } ],
+ [ { atom => 'test/a-1.0' } => { %$a1, range => '>=' } ],
+ [ { atom => '=test/a-v1.0' } => { %$a1, range => '=' } ],
[ { atom => '=<test/a-v1.0' } => $inv_atom ],
[ { atom => '>=test/a' } => $range_no_ver ],
[ { ebuild => undef } => $inv_ebuild ],
[ { ebuild => '/wat/test/a/a.ebuild' } => $inv_ebuild ],
- [ { ebuild => '/wat/test/a/a-1.0.ebuild' } => { %$a1, range => '=' } ],
+ [ { ebuild => '/wat/test/a/a-1.0.ebuild' } => { %$a1, range => '>=' } ],
[ { ebuild => '/wat/test/a/b-1.0.ebuild' } => $inv_ebuild ],
);