This is an automated email from the git hooks/post-receive script. kanashiro-guest pushed a commit to branch master in repository carton.
commit 5a350c90bafc1bf753ab91f3777230132ead084e Author: Tatsuhiko Miyagawa <miyag...@bulknews.net> Date: Wed Jun 5 11:21:42 2013 +0900 Add Dependency#version method to find the version in the dists locked --- lib/Carton/Dependency.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/Carton/Dependency.pm b/lib/Carton/Dependency.pm index 0bd3519..f854332 100644 --- a/lib/Carton/Dependency.pm +++ b/lib/Carton/Dependency.pm @@ -2,13 +2,18 @@ package Carton::Dependency; use strict; use Moo; -has module => (is => 'rw'); +has module => (is => 'rw'); has requirement => (is => 'rw'); -has dist => (is => 'rw', handles => [ qw(prereqs) ]); +has dist => (is => 'rw', handles => [ qw(prereqs) ]); sub distname { my $self = shift; $self->dist->dist; } +sub version { + my $self = shift; + $self->dist->provides->{$self->module}{version}; +} + 1; -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/carton.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits