Skip to content

Commit

Permalink
handle_distdir now returns a list of files added
Browse files Browse the repository at this point in the history
This is so that other tools can know which files were added. In the case
of `Dist::Zilla`, it needs to know the files so that it can add them to
the release tarball.
  • Loading branch information
zmughal committed Dec 13, 2014
1 parent 2681c58 commit f69d819
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Inline/Module.pm
Expand Up @@ -277,7 +277,7 @@ sub handle_distdir {
push @included_modules, $_;
}

my @manifest;
my @manifest; # files created under distdir
for my $module (@inlined_modules) {
my $code = $class->dyna_module($module);
$class->write_module("$distdir/lib", $module, $code);
Expand All @@ -294,6 +294,8 @@ sub handle_distdir {
}

$class->add_to_manifest($distdir, @manifest);

return @manifest; # return a list of the files added
}

sub handle_fixblib {
Expand Down

0 comments on commit f69d819

Please sign in to comment.