Permalink
Browse files

`handle_distdir` now returns a list of files added

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...
1 parent 2681c58 commit f69d8196e81c655a3577f9980e0e54bbf970e7f8 @zmughal zmughal committed Dec 13, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Inline/Module.pm
View
@@ -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);
@@ -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 {

0 comments on commit f69d819

Please sign in to comment.