Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/hxp/Haxelib.hx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Haxelib
var cacheDryRun = System.dryRun;
System.dryRun = false;

output = Haxelib.runProcess(workingDirectory, ["path", name], true, true, true);
output = Haxelib.runProcess(workingDirectory, ["path", name], true, true, true, false, true);
if (output == null) output = "";

System.dryRun = cacheDryRun;
Expand Down Expand Up @@ -173,6 +173,8 @@ class Haxelib
{
if (result == "")
{
var notInstalled = ~/Library (\S+) (version \S+ )?is not installed/;

if (output.indexOf("does not have") > -1)
{
var directoryName = "";
Expand All @@ -197,6 +199,14 @@ class Haxelib

Log.error("haxelib \"" + haxelib.name + "\" does not have an \"ndll/" + directoryName + "\" directory");
}
else if (notInstalled.match(output) && notInstalled.matched(1) != haxelib.name)
{
Log.error("Could not find haxelib \""
+ notInstalled.matched(1)
+ "\" (dependency of \""
+ haxelib.name
+ "\"), does it need to be installed?");
}
else if (output.indexOf("haxelib install ") > -1 && output.indexOf("haxelib install " + haxelib.name) == -1)
{
var start = output.indexOf("haxelib install ") + 16;
Expand Down