Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow non-ecosystem dependencies
If a module is installed, we can now use it as a dependency without
needing it in the ecosystem. This allows you to use panda to install
private modules that never see the ecosystem, or to test a set of
modules before adding them to the ecosystem.
  • Loading branch information
retupmoca committed Apr 11, 2014
1 parent c19fb6b commit 7ead09e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Panda/Ecosystem.pm
Expand Up @@ -37,6 +37,7 @@ class Panda::Ecosystem {
unless defined $list {
die "An unknown error occured while reading the projects file";
}
my %non-ecosystem = %!saved-meta;
for $list.list -> $mod {
my $p = Panda::Project.new(
name => $mod<name>,
Expand All @@ -45,6 +46,16 @@ class Panda::Ecosystem {
metainfo => $mod,
);
self.add-project($p);
%non-ecosystem{$mod<name>}:delete;
}
for %non-ecosystem.kv -> $name, $mod {
my $p = Panda::Project.new(
name => $name,
version => $mod<version>,
dependencies => $mod<depends>,
metainfo => $mod,
);
self.add-project($p);
}
}

Expand Down

0 comments on commit 7ead09e

Please sign in to comment.