[svn:Module-Build] r12699 - in Module-Build/trunk: . lib/Module/Build

[email protected]
Newsgroups perl.module.build.checkins
Message-ID <[email protected]>
Author: kwilliams
Date: Tue Apr 14 16:00:21 2009
New Revision: 12699

Modified:
   Module-Build/trunk/Changes
   Module-Build/trunk/lib/Module/Build/Base.pm

Log:
dist_dir() uses dist_name() and dist_version()

Modified: Module-Build/trunk/Changes
==============================================================================
--- Module-Build/trunk/Changes	(original)
+++ Module-Build/trunk/Changes	Tue Apr 14 16:00:21 2009
@@ -14,6 +14,8 @@
    (RT #37478) [patch from Alexandr Ciornii]
  - Archive::Tar now the default for generating tarballs on all platforms
    (avoids problems with incompatible tar binaries)
+ - dist_dir() now uses dist_name() and dist_version() accessors rather
+   than using its properties directly. [brian d. foy]
    
 0.32 - Wed Feb 25 17:40:02 PST 2009
 

Modified: Module-Build/trunk/lib/Module/Build/Base.pm
==============================================================================
--- Module-Build/trunk/lib/Module/Build/Base.pm	(original)
+++ Module-Build/trunk/lib/Module/Build/Base.pm	Tue Apr 14 16:00:21 2009
@@ -3425,7 +3425,7 @@
 
 sub dist_dir {
   my ($self) = @_;
-  return "$self->{properties}{dist_name}-$self->{properties}{dist_version}";
+  return join "-", $self->dist_name, $self->dist_version;
 }
 
 sub ppm_name {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.