From 9fefe1dd0692e842693d6aea5c06396e0b25ee6f Mon Sep 17 00:00:00 2001 From: Paul Ouellette Date: Fri, 16 Aug 2019 19:44:28 -0400 Subject: writer.make_namespace_file: name has no namespace --- src/luarocks/manif/writer.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/luarocks/manif/writer.lua b/src/luarocks/manif/writer.lua index 23ba2532..d6b70a5f 100644 --- a/src/luarocks/manif/writer.lua +++ b/src/luarocks/manif/writer.lua @@ -279,7 +279,7 @@ function writer.make_rock_manifest(name, version) end -- Writes a 'rock_namespace' file in a locally installed rock directory. --- @param name string: the rock name (may be in user/rock format) +-- @param name string: the rock name, without a namespace -- @param version string: the rock version -- @param namespace string?: the namespace -- @return true if successful (or unnecessary, if there is no namespace), @@ -288,8 +288,6 @@ function writer.make_namespace_file(name, version, namespace) assert(type(name) == "string" and not name:match("/")) assert(type(version) == "string") assert(type(namespace) == "string" or not namespace) - name = util.adjust_name_and_namespace(name, { namespace = namespace }) - name, namespace = util.split_namespace(name) if not namespace then return true end -- cgit v1.2.3-55-g6feb