shithub: mc

Download patch

ref: 41dfa1df58c7e398a68e9c2b6f6f745b7b3f0b2b
parent: c3a7db11052192c3ae599604e0c3922a28a7f771
author: Ori Bernstein <ori@eigenstate.org>
date: Sat May 21 19:09:21 EDT 2016

Add fallback for usefile path on installed dir.

--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -380,6 +380,11 @@
 
 	libname = std.fmt("lib{}.use", lib)
 	path = std.pathjoin([opt_instbase, config.Libpath, libname][:])
+	if !std.fisreg(path)
+		std.slfree(path)
+		path = std.pathjoin([opt_instbase, config.Libpath, lib][:])
+	;;
+
 	std.slfree(libname)
 :found
 	match  bio.open(path, bio.Rd)