Skip to content
Browse files

Fix installing random files from lib/

  • Loading branch information...
1 parent a5f2ff8 commit 5ae49a81a64ebf044d89354a3d33774e5245843f @tadzik committed Nov 26, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −3 lib/Panda/Installer.pm
  2. +0 −1 t/panda/installer.t
View
4 lib/Panda/Installer.pm
@@ -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)}");
View
1 t/panda/installer.t
@@ -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",

0 comments on commit 5ae49a8

Please sign in to comment.
Something went wrong with that request. Please try again.