Skip to content

Commit

Permalink
Fix logic to always download for custom url patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Jul 10, 2015
1 parent c8d1510 commit e3690f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core.lua
Expand Up @@ -318,7 +318,7 @@ local function makeCore(config)
local fd = assert(uv.fs_open(tempFile, "w", 511)) -- 0777

local binSize
if meta.luvi and not (meta.luvi.flavor == "regular" and semver.gte(luvi.version, meta.luvi.version)) and not luvi_source then
if not luvi_source and meta.luvi and (meta.luvi.url or meta.luvi.flavor ~= "regular" or not semver.gte(luvi.version, meta.luvi.version)) then
local url = luviUrl(meta.luvi)
log("downloading custom luvi", url)
-- TODO: stream the binary and show progress
Expand Down

0 comments on commit e3690f7

Please sign in to comment.