From af49086b7f051af17c2a079150188b77bca7d595 Mon Sep 17 00:00:00 2001 From: David Zuelke Date: Fri, 11 Dec 2015 21:12:26 +0100 Subject: [PATCH] prevent generation of illegal empty metapak repo --- bin/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 34c93dc3d..3fc32c164 100755 --- a/bin/compile +++ b/bin/compile @@ -165,7 +165,7 @@ if(file_exists(getenv("COMPOSER_LOCK"))) { $require[$package["name"]] = $package["version"]; } // add all meta-packages to one local package repo - $repositories[] = ["type" => "package", "package" => $metapaks]; + if($metapaks) $repositories[] = ["type" => "package", "package" => $metapaks]; } // if no PHP or HHVM is required anywhere, we need to add something if(!$have_runtime_req) {