Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Commit

Permalink
Don't install version-less dependencies that have a dev set Fix HaxeF…
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Lemière committed Mar 10, 2016
1 parent c875791 commit c08fbcb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/haxelib/client/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,18 @@ class Main {

function doInstallDependencies( dependencies:Array<Dependency> )
{
var rep = getRepository();

for( d in dependencies ) {
if( d.version == "" ) {
var pdir = rep + Data.safe(d.name);
var dev = try getDev(pdir) catch (_:Dynamic) null;

if (dev != null) { // no version specified and dev set, no need to install dependency
continue;
}
}

print("Installing dependency "+d.name+" "+d.version);
if( d.version == "" )
d.version = site.infos(d.name).getLatest();
Expand Down

0 comments on commit c08fbcb

Please sign in to comment.