aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/deps.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua
index a5af6206..a2cdcf08 100644
--- a/src/luarocks/deps.lua
+++ b/src/luarocks/deps.lua
@@ -135,7 +135,9 @@ function parse_version(vstring)
135 -- extract a word 135 -- extract a word
136 token, rest = vstring:match("^(%a+)[%.%-%_]*(.*)") 136 token, rest = vstring:match("^(%a+)[%.%-%_]*(.*)")
137 if not token then 137 if not token then
138 return nil 138 print("Warning: version number '"..vstring.."' could not be parsed.")
139 version[i] = 0
140 break
139 end 141 end
140 local last = #version 142 local last = #version
141 version[i] = deltas[token] or (token:byte() / 1000) 143 version[i] = deltas[token] or (token:byte() / 1000)