Permalink
Browse files

Merge pull request #77 from retupmoca/master

Allow non-ecosystem dependencies
  • Loading branch information...
2 parents c19fb6b + 7ead09e commit 2693bbc536bb02930a1a2ba38fcd2f194f748b48 @tadzik committed Apr 11, 2014
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/Panda/Ecosystem.pm
View
@@ -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>,
@@ -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);
}
}

0 comments on commit 2693bbc

Please sign in to comment.