Skip to content

Commit

Permalink
Fix installing random files from lib/
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed Nov 26, 2012
1 parent a5f2ff8 commit 5ae49a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions lib/Panda/Installer.pm
Expand Up @@ -14,9 +14,7 @@ class Panda::Installer does Pies::Installer {
method install(Pies::Project $p) {
indir $!resources.workdir($p), {
if 'blib'.IO ~~ :d {
for find(dir => 'blib', name => /\.p[od|m6?]$/).list,
find(dir => 'blib', name => /\.pir$/).list
-> $i {
for find(dir => 'blib', type => 'file').list -> $i {
# .substr(5) to skip 'blib/'
mkpath "$!destdir/{$i.dir.substr(5)}";
$i.IO.copy("$!destdir/{$i.Str.substr(5)}");
Expand Down
1 change: 0 additions & 1 deletion t/panda/installer.t
Expand Up @@ -22,7 +22,6 @@ sub file_exists_ok($a as Str, $msg as Str) {
file_exists_ok "$destdir/lib/foo.pm", 'module installed';
file_exists_ok "$destdir/lib/foo.pir", 'pir installed';
file_exists_ok "$destdir/lib/bar.pod", 'pod installed';
todo 1;
file_exists_ok "$destdir/lib/baz.js", 'random files installed';
file_exists_ok "$destdir/bin/bar", 'bin installed';
file_exists_ok "$destdir/compiled/module/doc/foofile",
Expand Down

0 comments on commit 5ae49a8

Please sign in to comment.