diff options
-rw-r--r-- | src/luarocks/cmd/write_rockspec.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/luarocks/cmd/write_rockspec.lua b/src/luarocks/cmd/write_rockspec.lua index cc218bde..d3ec7b0d 100644 --- a/src/luarocks/cmd/write_rockspec.lua +++ b/src/luarocks/cmd/write_rockspec.lua | |||
@@ -192,9 +192,19 @@ local function rockspec_cleanup(rockspec) | |||
192 | rockspec.source.file = nil | 192 | rockspec.source.file = nil |
193 | rockspec.source.protocol = nil | 193 | rockspec.source.protocol = nil |
194 | rockspec.source.identifier = nil | 194 | rockspec.source.identifier = nil |
195 | rockspec.source.dir = nil | ||
196 | rockspec.source.dir_set = nil | ||
197 | rockspec.source.pathname = nil | ||
195 | rockspec.variables = nil | 198 | rockspec.variables = nil |
196 | rockspec.name = nil | 199 | rockspec.name = nil |
197 | rockspec.format_is_at_least = nil | 200 | rockspec.format_is_at_least = nil |
201 | rockspec.local_abs_filename = nil | ||
202 | rockspec.rocks_provided = nil | ||
203 | for _, list in ipairs({"dependencies", "build_dependencies", "test_dependencies"}) do | ||
204 | if rockspec[list] and not next(rockspec[list]) then | ||
205 | rockspec[list] = nil | ||
206 | end | ||
207 | end | ||
198 | end | 208 | end |
199 | 209 | ||
200 | function write_rockspec.command(flags, name, version, url_or_dir) | 210 | function write_rockspec.command(flags, name, version, url_or_dir) |