Skip to content

Instantly share code, notes, and snippets.

Created August 28, 2015 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/46655b37a8f21834b737 to your computer and use it in GitHub Desktop.
Save anonymous/46655b37a8f21834b737 to your computer and use it in GitHub Desktop.
diff --git a/lib/Panda/Ecosystem.pm b/lib/Panda/Ecosystem.pm
index 886eae2..ef290c8 100644
--- a/lib/Panda/Ecosystem.pm
+++ b/lib/Panda/Ecosystem.pm
@@ -61,7 +61,7 @@ class Panda::Ecosystem {
my $p = Panda::Project.new(
name => $mod<name>,
version => $mod<version>,
- dependencies => [($mod<depends> (|) $mod<test-depends> (|) $mod<build-depends>).list.flat],
+ dependencies => [($mod<depends>//Empty (|) $mod<test-depends>//Empty (|) $mod<build-depends>//Empty).list.flat],
metainfo => $mod,
);
self.add-project($p);
@@ -71,7 +71,7 @@ class Panda::Ecosystem {
my $p = Panda::Project.new(
name => $name,
version => $mod<version>,
- dependencies => [($mod<depends> (|) $mod<test-depends> (|) $mod<build-depends>).list.flat],
+ dependencies => [($mod<depends>//Empty (|) $mod<test-depends>//Empty (|) $mod<build-depends>//Empty).list.flat],
metainfo => $mod,
);
self.add-project($p);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment