[Module-build-checkins] Module-Build/lib/Module/Build Base.pm,1.555,1.556
Status: Beta
Brought to you by:
kwilliams
From: Randy W. S. <si...@us...> - 2006-03-09 10:28:17
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30142/lib/Module/Build Modified Files: Base.pm Log Message: When creating a packing list, it is not clear how to derive the name of the file when "module_list" is not defined. Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.555 retrieving revision 1.556 diff -u -d -r1.555 -r1.556 --- Base.pm 9 Mar 2006 10:00:34 -0000 1.555 +++ Base.pm 9 Mar 2006 10:28:00 -0000 1.556 @@ -769,9 +769,9 @@ return $p->{dist_name} if defined $p->{dist_name}; die "Can't determine distribution name, must supply either 'dist_name' or 'module_name' parameter" - unless $p->{module_name}; + unless $self->module_name; - ($p->{dist_name} = $p->{module_name}) =~ s/::/-/g; + ($p->{dist_name} = $self->module_name) =~ s/::/-/g; return $p->{dist_name}; } @@ -3433,12 +3433,14 @@ "WARNING: Can't figure out install path for types: @skipping\n" . "Files will not be installed.\n" ) if @skipping; - + # Write the packlist into the same place as ExtUtils::MakeMaker. - my $archdir = $self->install_destination('arch'); - my @ext = split /::/, $self->module_name; - $map{write} = File::Spec->catdir($archdir, 'auto', @ext, '.packlist'); - + if (my $module_name = $self->module_name) { + my $archdir = $self->install_destination('arch'); + my @ext = split /::/, $module_name; + $map{write} = File::Spec->catdir($archdir, 'auto', @ext, '.packlist'); + } + # Handle destdir if (length(my $destdir = $self->destdir || '')) { foreach (keys %map) { |