Browse Source

fixed issue #575

Nicolas Cannasse 13 years ago
parent
commit
5ec2fddd53
1 changed files with 6 additions and 0 deletions
  1. 6 0
      std/tools/haxelib/Main.hx

+ 6 - 0
std/tools/haxelib/Main.hx

@@ -359,6 +359,12 @@ class Main {
 
 	function install() {
 		var prj = param("Library name");
+		if( neko.FileSystem.exists(prj) && !neko.FileSystem.isDirectory(prj) ) {
+			if( !StringTools.endsWith(prj,".zip") )
+				throw "Local file to install must be a zip";
+			doInstallFile(prj,true,true);
+			return;
+		}
 		var inf = site.infos(prj);
 		if( inf.curversion == null )
 			throw "This library has not yet released a version";