Skip to content
Browse files

Don't read extra statefiles if doing site install

This could cause problems if there were modules installed in
/root/.perl6 for example. If we're doing a site install, all
dependents need to be in site as well.
  • Loading branch information...
1 parent 99da3b3 commit 73c2ade89cddb10c624476a738e44a2ae31855aa @retupmoca retupmoca committed
Showing with 5 additions and 3 deletions.
  1. +5 −3 bin/panda
View
8 bin/panda
@@ -26,9 +26,11 @@ my $panda;
}
my @extra-statefiles;
- for grep(*.defined, $destdir, %*CUSTOM_LIB<site home>) -> $prefix {
- unless $destdir eq $prefix {
- @extra-statefiles.push("$prefix/panda/state");
+ unless $destdir eq %*CUSTOM_LIB<site> {
+ for grep(*.defined, $destdir, %*CUSTOM_LIB<site home>) -> $prefix {
+ unless $destdir eq $prefix {
+ @extra-statefiles.push("$prefix/panda/state");
+ }
}
}

0 comments on commit 73c2ade

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