aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-04-17 12:25:42 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-04-17 12:27:05 -0300
commit6b5e834242bec8e00256a7c6e639395086d558b5 (patch)
treec8d074cd96e9f60f8706cf976d843c6a7b77ef87
parentf8579e9d1019dd6e6629858c3935ffc7bca28eb0 (diff)
downloadluarocks-6b5e834242bec8e00256a7c6e639395086d558b5.tar.gz
luarocks-6b5e834242bec8e00256a7c6e639395086d558b5.tar.bz2
luarocks-6b5e834242bec8e00256a7c6e639395086d558b5.zip
normalize package names to lowercase like the CLI
-rw-r--r--src/luarocks/queries.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/luarocks/queries.lua b/src/luarocks/queries.lua
index 6df61296..0c8790fa 100644
--- a/src/luarocks/queries.lua
+++ b/src/luarocks/queries.lua
@@ -160,6 +160,8 @@ do
160 return nil, "failed to extract dependency name from '"..depstr.."'" 160 return nil, "failed to extract dependency name from '"..depstr.."'"
161 end 161 end
162 162
163 ns_name = ns_name:lower()
164
163 local constraints, err = parse_constraints(rest) 165 local constraints, err = parse_constraints(rest)
164 if not constraints then 166 if not constraints then
165 return nil, err 167 return nil, err