]> git.vpit.fr Git - perl/modules/CPANPLUS-Dist-Gentoo.git/commitdiff
Fix typos in C::D::G::Atom
authorVincent Pit <vince@profvince.com>
Fri, 27 Nov 2009 16:12:07 +0000 (17:12 +0100)
committerVincent Pit <vince@profvince.com>
Fri, 27 Nov 2009 16:12:07 +0000 (17:12 +0100)
lib/CPANPLUS/Dist/Gentoo/Atom.pm

index 45a68c5b90ff08b05c92b5c13d7da886e204cbb0..bd0febde15cb6d1085d649c8bb00b2e2be1a05f4 100644 (file)
@@ -55,7 +55,7 @@ sub new {
  bless {
   category => $category,
   name     => $name,
-  version  => $name,
+  version  => $version,
   minimum  => $args{minimum},
   ebuild   => $args{ebuild},
  }, $class;
@@ -120,7 +120,7 @@ sub fold {
   }
 
   if ($atom->minimum) {
-   if ($cur->minmium) {
+   if ($cur->minimum) {
     $seen{$key} = $atom < $cur ? $cur : $atom;
    } else {
     Carp::confess('Version mismatch') if $atom > $cur;