Skip to content

Commit

Permalink
Merge pull request #77 from retupmoca/master
Browse files Browse the repository at this point in the history
Allow non-ecosystem dependencies
  • Loading branch information
Tadeusz Sośnierz committed Apr 11, 2014
2 parents c19fb6b + 7ead09e commit 2693bbc
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 2693bbc

Please sign in to comment.